Welcome Guest, Not a member yet? Register   Sign In
affected rows become -1
#1

[eluser]max123[/eluser]
I ueds
Code:
$this->db->affeted_rows()
function

why does it gives '-1' when data is not inserted in to the database
#2

[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
#3

[eluser]max123[/eluser]
ok thanx. I wondered y it doesn't return 0




Theme © iAndrew 2016 - Forum software by © MyBB