Re: [PHP] Re: Code for db connection errors

2002-08-15 Thread Andre Dubuc
Thanks Patrick, This looks good -- just what I needed to do the job! Regards, Andre On Thursday 15 August 2002 10:22 pm, Pafo wrote: > why not: > $error[] = "Connection to the database failed"; > > > $db = pg_connect("dbname=rap user=postgres") die (error(0)); > > > function error ($code

[PHP] Re: Code for db connection errors

2002-08-15 Thread Pafo
why not: i think ive would have done something like that... but im not the greatest expert on php :) regards patrick "Andre Dubuc" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Suppose, during an attempted connection to a database, an error condition >