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

PHP Home Page

Manual Table of Contents
Up to PostgreSQL
Quick Reference
English version of this pageGerman version of this pageJapanese 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
Sun, 06 Aug 2000
pg_Exec 
Next page


pg_ErrorMessage

(unknown)

pg_ErrorMessage -- messaggio di errore

Descrizione

string pg_errormessage (int connection)

Restituisce una stringa contenente il messaggio di errore, falso se fallise. Dettagli riguardo l'errore probabilmente non possono essere ottenuti usando la funzione pg_errormessage() se un errore è avvenuto sull'ultima azione sul database per la quale esiste una connessione valida, questa funzione ritornerà una stringa contenente il messaggio di errore generato dal backend server.


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
Sun, 06 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.