Bind variables in a mysql_query statement

前端 未结 1 696
一生所求
一生所求 2021-01-21 02:28

Example mysql_query:

$query=mysql_query(\"SELECT `col1`, `col2` FROM `table` WHERE
`col1`=\'$escapedvariable\' \");

I know the above is not goo

相关标签:
1条回答
  • 2021-01-21 03:18

    No, you have to use mysqli-functions or PDO.

    0 讨论(0)
提交回复
热议问题