Fetch and Update Data in same page CodeIgniter |
(12-14-2017, 02:27 AM)kirasiris Wrote: I got stuck in a a problem in which I need to update some info from database in the same page that is shown. You can add an if statement to your controller (inside the "get_website_data" function) and you can check submit of any form field. Then you can put whole save data code inside of this if statement. I prefer to use form submit button for this. Because if you can check an input field and its value is empty, maybe you can't catch it in the controller. Like this: Code: if($this->input->post('submit_settings')){ I hope this helps. |
Messages In This Thread |
Fetch and Update Data in same page CodeIgniter - by kirasiris - 12-14-2017, 02:27 AM
RE: Fetch and Update Data in same page CodeIgniter - by InsiteFX - 12-14-2017, 04:17 AM
RE: Fetch and Update Data in same page CodeIgniter - by nickimnick - 12-15-2017, 03:36 AM
RE: Fetch and Update Data in same page CodeIgniter - by plonknimbuzz - 12-16-2017, 11:48 AM
|