So this query:
mysql_query("UPDATE item SET name = 'foo' WHERE name = 'bar'");
returns 1, but the value "bar" does not exist in the table. As expected, nothing has changed in the database itself, but should mysql_query () not return 0 in this case?
source
share