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

后端 未结 4 1330
臣服心动
臣服心动 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 11:03

    Your query is expecting this parameter:

    :event_price_currency_id
    

    Which you're not supplying. You are, however, supplying this parameter:

    'event_price_currency' => 1
    

    One of these things is not like the other.

提交回复
热议问题