My deletes from a MySQL db is working. However, I would like to know how I can check for a successful delete. nbr-rows comes back with zero. That's understood. What else is there?😕
$query = "DELETE FROM table WHERE field='value'"; $result = mysql_query($query); if ($result) { print 'Success'; }
mysql_affected_rows
dagon;10930966 wrote:mysql_affected_rows
^ This is better 😃
OK, this works. Thanks everybody.
However, I have come across another problem. Double quotes vs. single quotes. I will post a new thread for this