or { blah blah blah }

From: Date: Fri, 09 Nov 2001 19:40:53 +0000
Subject: or { blah blah blah }
Groups: php.db 
Request: Send a blank email to php-db+get-14211@lists.php.net to get a copy of this message
Inside a function, I am reading data from MySQL. In case any of these calls fail I follow them with something like: or echo "Can't make query to database!"; The problem is, I want to do more things than just this... and then I want to return out of the function rather than continuing to execute statements. However, the following doesn't work... I get a parsing error.. How can it be done? or { echo "Can't make query to database!"; return; } .. other statements .. I could have it call another function to do more things, but then how would I have it return out of it's current function when done doing those things? This is a pretty disasterous inability, not recognizing code blocks. --Matthew

« previous php.db (#14211) next »