PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

fbsql_error> <fbsql_drop_db
Last updated: Fri, 18 Jul 2008

view this page in

fbsql_errno

(PHP 4 >= 4.0.6, PHP 5)

fbsql_errno — Ritorna il valore numerico del messaggio di errore emesso dalla precedente operazione FrontBase.

Descrizione

int fbsql_errno ([ resource $ link_identifier ] )

Restituisce il numero di errore dell'ultima funzione fbsql, 0 (zero) se non ci sono stati errori.

Gli errori vengono restituiti dal database fbsql senza visualizzare i warnings. Usare fbsql_errno() per ricevere codice dell'errore. Da notare che questa funzione restituisce solamente il codice di errore proveniente dalla più recente esecuzione di una funzione fbsql (escludendo fbsql_error() e fbsql_errno()),così se si vuole usarla, assicurarsi di controllare il valore prima di richiamare un'altra funzione fbsql.

<?php
fbsql_connect
("marliesle");
echo 
fbsql_errno().": ".fbsql_error()."<BR>";
fbsql_select_db("nonexistentdb");
echo 
fbsql_errno().": ".fbsql_error()."<BR>";
$conn fbsql_query("SELECT * FROM nonexistenttable;");
echo 
fbsql_errno().": ".fbsql_error()."<BR>";
?>

Vedere anche: fbsql_error() e fbsql_warnings().



add a note add a note User Contributed Notes
fbsql_errno
There are no user contributed notes for this page.

fbsql_error> <fbsql_drop_db
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites