Welcome Guest, Not a member yet? Register   Sign In
confirming successful update
#3

[eluser]OES[/eluser]
In Model just place your query in an if like.


Model
Code:
if(!$this->db->update('table_name', $data)):
  return FALSE;
endif;

Controller
Code:
if(!$this->model_name->update_function($data)):
  // it failed
else:
  // It passed do something else.
endif;

Hope this helps

Good Luck


Messages In This Thread
confirming successful update - by El Forum - 11-02-2008, 02:45 PM
confirming successful update - by El Forum - 11-02-2008, 04:08 PM
confirming successful update - by El Forum - 11-02-2008, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB