difficulty with insert_batch |
php_rocs@n0cturn0
While you may need all the values in the array the field in the database may be expecting a string value instead of an array object. This is why I recommend that you see what value the foreach loop is kicking out (which I suspect is an array object). I understood that field in the database may be expecting a string value instead of an array object. Do not know, to do the loop 'disciplinas array ' for insert field the db. example: Array ( [ [nraluno] => 3941 [nomeguerra] => CALHEIROS [nrmat] => 36678 [serie] => 6º [trimestre] => 2 [turma] => 601 [nrano] => 49 [status] => 1 [disciplinas] => Array ( [0] => História [1] => LEM - Inglês ) [nrbase] => Array ( [0] => 1089 [1] => 1092 ) ) insert two value the array disciplinas in field db, and the rest the array (nraluno,nomedeguerra,nrmat..) repeat at the insert. sorry my english! |
Welcome Guest, Not a member yet? Register Sign In |