![]() |
Insert associative array to database array to string problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Insert associative array to database array to string problem (/showthread.php?tid=61217) |
Insert associative array to database array to string problem - El Forum - 10-17-2014 [eluser]Ignis Avis[/eluser] In the form input doing it like following Code: <?php foreach($fee_cat as $row) { ?> In the model Code: public function add_new_grade() { Its causing an array to string convertion error. What I am doing wrong? Thanks in advance. Insert associative array to database array to string problem - El Forum - 10-22-2014 [eluser]PravinS[/eluser] Code: $fc_id = $this->input->post('fc_id'); check $fc_id values using this code, you will understand, what I am saying Code: print_r($fc_id); Insert associative array to database array to string problem - El Forum - 10-22-2014 [eluser]PravinS[/eluser] Code: $fc_id = $this->input->post('fc_id'); check using Code: print_r($fc_id); |