Update Database Field Error CodeIgniter

前端 未结 5 589
悲&欢浪女
悲&欢浪女 2021-02-04 08:18

I am getting the following error message in CodeIgniter 2.1:

A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: databa         


        
5条回答
  •  不知归路
    2021-02-04 09:07

    Just realized that using a foreach like M_A_K suggested actually beats the purpose of using the update_batch function. This is because by using foreach, we're actually doing single update (not batch) for each array elements. This is no different than using the (single) update function in CodeIgniter.

提交回复
热议问题