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" <[EMAIL PROTECTED]> wrote:

> When a database connection fails, how do I detect that in my script so I can
> skip all the rest?
> 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to