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

search for in the

fbsql_fetch_array> <fbsql_errno
[edit] Last updated: Fri, 17 May 2013

view this page in

fbsql_error

(PHP 4 >= 4.0.6, PHP 5)

fbsql_error Ritorna il testo del messaggio di errore emesso dalla precedente operazione FrontBase.

Descrizione

string fbsql_error ([ resource $ link_identifier ] )

Restituisce il testo del messaggio di errore dell'ultima funzione fbsql, o '' (una stringa vuota) 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_errno() e fbsql_warnings().



add a note add a note User Contributed Notes fbsql_error - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites