![]() |
Urgent HELP needed - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Urgent HELP needed (/showthread.php?tid=40350) |
Urgent HELP needed - El Forum - 04-06-2011 [eluser]Aniket Pant[/eluser] I have a page in which i am taking a few inputs from a user using form_input(). Now, these inputs are in different fields like this- Code: echo form_open('admin/enter_product'); but when i try to insert these values in my table 'data', it turns all the number related fields which are price, disc1 and disc2 to ZERO. Code: $id = $this->input->post('id'); The structure of table 'data' is: id, name, short_name, product, product_desc - varchar price, disc1, disc2 - int Please tell me what to do Urgent HELP needed - El Forum - 04-06-2011 [eluser]Aniket Pant[/eluser] Sorry, very idiotic error... fixed it ![]() No need to reply ![]() |