apostrophe during Insert (Mysql)

后端 未结 3 1863
栀梦
栀梦 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 MySQLi prepared statements.

    You can pass special characters easily without any extra work.

    Read MySQLi prepared statements.

提交回复
热议问题