MySQL Forums
Forum List  »  PHP

Re: Update failed with NO mysql_error
Posted by: Scotty Miller
Date: July 28, 2009 03:16AM

There isn't necessarily an error this case. The exception you are arriving to is because the "WHERE" portion of your query doesn't match anything in the table, so it doesn't find any rows to update. If you are getting 0 affected rows by your queries, this means that the query ran successfully, just didn't change anything, which means you (more than likely) need to fix the "WHERE" portion of your query to search for values that exist.

Options: ReplyQuote


Subject
Written By
Posted
Re: Update failed with NO mysql_error
July 28, 2009 03:16AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.