Problem with inserting csv file entries to db |
(05-17-2019, 05:53 AM)php_rocs Wrote: @HarrysR, Well i feel insanely stupid rn since the solution was really simple and silly. To begin with, to answer your question, i use "echo" statements. On the other hand as for the solution here's what was wrong. In my controller i had this: Code: $add_manuf = $this->product_model->add_manufacturer($manufacturer_data); While the model was like that: Code: public function add_manufacturer($data){ So (for people like me who didn't see that coming), while the function returned the last inserted_id of the query, i was trying to access the value as if the sql query returned a row_array. In two words.... i had to do it like this: Code: [BEFORE] Thank you for your interest in finding the problem guys! //Life motto if (sad() == true) { sad().stop(); develop(); } |
Messages In This Thread |
Problem with inserting csv file entries to db - by HarrysR - 05-16-2019, 08:02 AM
RE: Problem with inserting csv file entries to db - by php_rocs - 05-16-2019, 08:40 PM
RE: Problem with inserting csv file entries to db - by HarrysR - 05-17-2019, 02:17 AM
RE: Problem with inserting csv file entries to db - by php_rocs - 05-17-2019, 05:53 AM
RE: Problem with inserting csv file entries to db - by HarrysR - 05-19-2019, 04:40 PM
|