PHP/MySQL: Updating nonexistent column value

masoudm

New Member
So, this query:\[code\]mysql_query("UPDATE item SET name = 'foo' WHERE name = 'bar'");\[/code\]is returning 1, but the value 'bar' doesn't exists in the table. As expected, nothing has changed in the database itself, but shouldn't mysql_query() return 0 in that case?
 
Back
Top