Getting helpful feedback from MySQL when it errors is possible if you use the following:

mysql_query($sql) or die('Some useful message:' . mysql_error() );

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.