Re: [PHP] Code for db connection errors

2002-08-15 Thread Andre Dubuc
On Thursday 15 August 2002 10:20 pm, Jason Wong wrote: > It's probably not very user friendly to display the raw error. You could > redirect the user to a generic error page saying something like "The site > is down for maintenance" or whatever. That's what I thought. So with your other idea of

Re: [PHP] Code for db connection errors

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 10:15, Andre Dubuc wrote: > Suppose, during an attempted connection to a database, an error condition > occurs, where the connection cannot be made. > > . . . > $db = pg_connect("dbname=rap user=postgres") die ("Connection failed - > please try again."); > . . . . > ?> >