MySQL Forums
Forum List  »  PHP

Re: increasing number
Posted by: Peter Brawley
Date: March 08, 2014 10:20AM

To discover why a query failed, run it in the mysql client, and when you have that working, write PHP code to poll for errors eg ...

$res = mysql_query("UPDATE etc ...") or mysql_error();

BTW, you need to be using the mysqli API instead of the mysql API, which is deprecated.

Options: ReplyQuote


Subject
Written By
Posted
March 08, 2014 06:47AM
Re: increasing number
March 08, 2014 10:20AM
March 09, 2014 09:57AM
March 09, 2014 10:07AM


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.