Hello John,
Wednesday, February 25, 2004, 6:26:41 PM, you wrote:
JTJ> Richard,
JTJ> Thanks. Should I still include the die ?
JTJ> $glquery = mysql_query($sql) or die("Invalid query: " . mysql_error());
It's up to you, I never do. It won't give you a very clean exit if an
error occurs.
--
Best
Hello John,
Wednesday, February 25, 2004, 5:53:13 PM, you wrote:
JTJ> Here is my code. $sql works correctly, but am not sure I did this line correct:
JTJ> $glquery = mysql_query($sql);
JTJ> because "if ($glquery)" always returns something. I want to know if it returns
NULL.
mysql_query will ret
2 matches
Mail list logo