Re: or die

From: Date: Fri, 21 Jul 2000 06:51:45 +0000
Subject: Re: or die
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7507@lists.php.net to get a copy of this message
Removing the quotes from around the function should work. <?php mysql_connect("host","user","passwd") or die( mysql_pconnect("host","user","passwd") ); ?> -Darrell Tyler Longren wrote: > Hello all- > > I was wondering if the following is possible: > > <? > mysql_connect("host","user","passwd") or die > ("mysql_pconnect("host","user","passwd")"); > ?> > Can functions be put inside of the "or die()"? Or does it HAVE to be a > text string? > > Thanks, > Tyler Longren > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- | Darrell Brogdon | http://www.sourceforge.net | | Web Developer | http://www.valinux.com | | VA Linux Systems, Inc. | http://darrell.brogdon.net |

« previous php.general (#7507) next »