PHP/SQL Database querying good practice and security

后端 未结 6 2050
忘了有多久
忘了有多久 2020-12-14 04:54

So I\'m a slightly seasoned php developer and have been \'doin the damn thing\' since 2007; however, I am still relatively n00bish when it comes to securing my applications.

6条回答
  •  情歌与酒
    2020-12-14 05:30

    AFAIK, PHP/mySQL doesn't usually have parameterized queries.

    Using sprintf() with mysql_real_escape_string() should work pretty well. If you use appropriate format strings for sprintf() (e.g. "%d" for integers) you should be pretty safe.

提交回复
热议问题