Welcome Guest, Not a member yet? Register   Sign In
Setting
#6

All query that change the data in a table  return the result of the operation not the data.
To solve your issue you need something like this


PHP Code:
$result $this->db->update('setting'$data);
if(
$result) {
 
  return $this->db->get_where('setting',array('id' => $id));
}
else {
 
  return 'The update was not successful most likely because I am freaking useless and cannot write any code';

A good decision is based on knowledge and not on numbers. - Plato

Reply


Messages In This Thread
Setting - by davy_yg - 09-12-2016, 11:24 PM
RE: Setting - by davy_yg - 09-13-2016, 02:37 AM
RE: Setting - by ciadmin - 09-13-2016, 06:32 AM
RE: Setting - by davy_yg - 09-13-2016, 06:52 AM
RE: Setting - by wolfgang1983 - 09-13-2016, 09:05 PM
RE: Setting - by salain - 09-13-2016, 10:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB