[thelist] PHP/MySQL help - solved

Hans-Fr=?ISO-8859-1?B?6WTp?=ric Fraser hfraser at videotron.ca
Thu Dec 19 21:37:01 CST 2002

>> anyone got any hints on how to generate a mySQL error to highlight
>> problems of this type in future?

$result = @mysql_query($sql, $connection) or die("the query ---> $sql <br>
<b>failed with Error --> </b>". mysql_errno() . " :<br> " . mysql_error());

Is about the best i can give you off hand!

Always put your values in '' that way if the value is empty you save
yourself a lot of errors!


More information about the thelist mailing list