★ wanayoo — archive 1999 http://www.php.net/manual/de/function.pg-errormessage.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PostgreSQL
Quick Reference
English version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
PostgreSQL
* pg_Close
* pg_cmdTuples
* pg_Connect
* pg_DBname
* pg_ErrorMessage
* pg_Exec
* pg_Fetch_Array
* pg_Fetch_Object
* pg_Fetch_Row
* pg_FieldIsNull
* pg_FieldName
* pg_FieldNum
* pg_FieldPrtLen
* pg_FieldSize
* pg_FieldType
* pg_FreeResult
* pg_GetLastOid
* pg_Host
* pg_loclose
* pg_locreate
* pg_loexport
* pg_loimport
* pg_loopen
* pg_loread
* pg_loreadall
* pg_lounlink
* pg_lowrite
* pg_NumFields
* pg_NumRows
* pg_Options
* pg_pConnect
* pg_Port
* pg_Result
* pg_trace
* pg_tty
* pg_untrace
Manual: pg_ErrorMessage
View the source code for this pageSearch the site



Previous page
 pg_DBname
 Updated
Sat, 12 Aug 2000
pg_Exec 
Next page


pg_ErrorMessage

(unknown)

pg_ErrorMessage -- Fehlermeldung

Beschreibung

string pg_errormessage (int connection)

Liefert einen String, der die Fehlermeldung enthält oder false bei Versagen. Details über den Fehler können aber eher nicht durch pg_errormessage bezogen werden. Wenn der Fehler bei der letzten Datenbank-Aktion, für die eine gültige Kennung existierte, auftrat, liefert die Funktion einen String mit der Fehlermeldung des Backend-Servers aus.


User Contributed Notes: pg_ErrorMessage


f.ermini@telemaco.it
26-Jan-1999 04:07
I would add that this function is useful particularly when used in combination with the "@" prefix, that turns off php's usual error reporting. Otherways, the user will see the error message without need of this functions (and without the fancy formatting that one could provide with a clever use of this function ;-D). Moreover, the text of this entry is not quite clear (maybe is a problem of language? I'm not a natural english-speaker too) but I may guess it means that this function won't work if the error has cause the connection to the DB to be closed.


ceo@l-i-e.com
16-Sep-1999 12:08
The most common example of an invalid connection is when pg_connect fails, and then pg_errormessage has nothing in it.



 About Notes


Previous page
 pg_DBname
 Updated
Sat, 12 Aug 2000
pg_Exec 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.