error: 'Invalid parameter number: parameter was not defined' when using an array to INSERT in PDO

后端 未结 4 1299
臣服心动
臣服心动 2021-01-26 10:31

I\'m trying to insert in array that looks like:

$prices = array(array(\'event_id\' => 1, \'event_price_type\' => 5, \'event_price\' => 5, \'event_price         


        
4条回答
  •  孤街浪徒
    2021-01-26 10:52

    You have a typo. There is event_price_currency key in your array and :event_price_currency_id placeholder in prepare() statement.

提交回复
热议问题