This may be kids play for some of you, but I figured this out and thought I'd share...
$connect = connect-to-db() or (alert("error") xor die());
or
$connect = connect-to-db() or (alert("error") xor return(false));
It makes for much cleaner code than what I used to do:
$connect = connect-to-db()
if (!$connect){
alert("Error");
return(false);
}
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

