apostrophe during Insert (Mysql)

后端 未结 3 1862
栀梦
栀梦 2020-12-07 04:22

I am getting data though a PHP text box and inserting it into a MySQL database with a normal insert command. The text box takes in a comment frm the user for a particular Ac

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 04:59

    Use mysql_real_escape_string(), or better yet, use parameterised queries with PDO.

提交回复
热议问题