PHP - MySQL prepared statement to INSERT an array

后端 未结 3 892
暖寄归人
暖寄归人 2021-01-15 02:45

I\'m editing a script that is using MySQLi. I need to use prepared statement to insert some values into the db.

My array is in the form of:

$insert =         


        
3条回答
  •  生来不讨喜
    2021-01-15 03:25

    inserting arrays with bind_param is painful, i recommend to use php's filter_var function. it does same filtering and also validates variables, inputs, its perfect. function manual page

提交回复
热议问题