Wednesday, February 4, 2015

PHP Array to String conversion Codeigniter

I was having this problem where I was doing an update batch to my db and I was getting the error of array to string conversion. The funny thing was that the db was being updated. After doing some research, I found out that there was a problem with the DB_active_rec.php file in Codeigniter, on line 1407.

Change $not[] = $k.'-'.$v; to $not[] = $k2.'-'.$v2 and the problem is solved.

No comments: