Re: Error handling with connection?

From: Date: Sat, 20 Jan 2001 17:11:59 +0000
Subject: Re: Error handling with connection?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6012@lists.php.net to get a copy of this message
John, $link_id = mysql_connect($database); //identify connection handle if (!$link_id) { die(sql_error()); } //test for connection handle Regards, Jaxon On 1/20/01 11:57 AM, "John Coonrod" <jc@thp.org> wrote: > When a database connection fails, how do I detect that in my script so I can > skip all the rest? >

« previous php.db (#6012) next »