The following code produces a parse error:
$res=mysql_query($sql) or return('There was an error');
However, this works fine:
$res=mysql_query($sql) or die('There was an error');
I can't understand why. In case of SQL error I only want to stop executing
current function, not the whole script.
--
--
-- Álvaro G. Vicario - Burgos, Spain
--