Let's say I have this...
$result = mysql_query($query)
or die ('MySQL query #21 failed.');
How could something like this be possible?
$result = mysql_query($query)
or $success = 'failed', $debuginfo = 'MySQL query #21';
What I want to do is to do multiple commands after the or statement, and avoid using die so I can handle the error reporting myself later in the code.
How should I separate multiple commands when using or statement? I can specify only one command( or $success = 'failed'; ), but I couldn't find a way to specify more commands. Tried using commas, parentheses, {} but I had no success.