Help please! - 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: Help please! (/showthread.php?tid=52707) |
Help please! - El Forum - 06-22-2012 [eluser]Unknown[/eluser] I'm new in codeigniter please help me.. I have no error when it comes to running my program but the inputs are not recognize my database basically it turns out the data that I inputted does not go to my database. here is my controller function Code: public function displayClientsFormsPage(){ here's the model Code: public function insertClient($data) I think the problem is in my condition because there is a foreign key in my tb_pet specifically owner_id.. I already load my model.. thanks in advance Help please! - El Forum - 06-22-2012 [eluser]roy3600[/eluser] Are you sure that 3 "="'s are correct? if($this->_submit_validate()===FALSE){ I think it should be the following, I'm also quite new to CodeIgniter: if($this->_submit_validate()==FALSE){ Help please! - El Forum - 06-22-2012 [eluser]PhilTem[/eluser] What does your _submit_validate() method do? Nonetheless: Your insertClient() method is wrong. It should be Code: function insertClient($data) Help please! - El Forum - 06-23-2012 [eluser]Unknown[/eluser] my _submit_validate is my funtion for setting the rules in my forms.. well thank you I already find the problem tnx for the effort bros.. |