07-06-2011, 07:59 PM
[eluser]marjune[/eluser]
well you can return your model
well you can return your model
Code:
$sql = "UPDATE notexistingtable SET active = true WHERE id = 123";
$result = $this->db->query($sql);
if($result)
return true;//or what ever you return here or maybe you display something like echo "true";
else
return mysql_error();//or echo mysql_error();