Re: [PHP] getting database connection to fail gracefully

2003-01-22 Thread Andy Clarke
This is mostly sorted out now. The mssql commands just needed @ signs to suppress error and warning messages. Thanks anyway, Andy Clarke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting database connection to fail gracefully

2003-01-22 Thread Jason Wong
On Wednesday 22 January 2003 19:11, Andy Clarke wrote: > Is there a way to get a database query to fail gracefully, so that rather > than calling Die(), it can work around the problem? In other words, to do > something like: > > if (mssql_connect($sDBhostname,$sDBusername,$sDBpassword)) { > //