For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2005 > Re: [PHP-DB] Error's management : php-pgsql.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Error's management : php-pgsql.
David BOUCHE

2005-12-07, 6:56 pm

Hello,

i'm ok with this.

But how do you explain the example on php.net ?

And how can I get the error message ? The same error message that i've
got in my logs : "Unable to connect to PostgreSQL server: FATAL: la base
de données «toto» n'existe pas"*

*(In english : the «toto» database doesn't exists").

Thanks for your support,
David.


Bastien Koert a écrit :
[color=darkred]
> Stands to reason don't you think. If you have no connection, you have
> no resource to handle that failure, hence no pg-last-notice. There is
> no error message from php since the only return from the call is
> 'FALSE' on login faliure...
>
> Bastien
>
>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com