affected rows become -1 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: affected rows become -1 (/showthread.php?tid=29377) |
affected rows become -1 - El Forum - 04-08-2010 [eluser]max123[/eluser] I ueds Code: $this->db->affeted_rows() why does it gives '-1' when data is not inserted in to the database affected rows become -1 - El Forum - 04-08-2010 [eluser]Phil Sturgeon[/eluser] Quote:Returns the number of affected rows on success, and -1 if the last query failed. http://uk2.php.net/mysql_affected_rows affected rows become -1 - El Forum - 04-08-2010 [eluser]max123[/eluser] ok thanx. I wondered y it doesn't return 0 |