Query: ingres_errno
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
INGRES_ERRNO(3) 1 INGRES_ERRNO(3) ingres_errno - Get the last Ingres error number generatedSYNOPSISint ingres_errno ([resource $link])DESCRIPTIONReturns an integer containing the last error number. If no error was reported 0 is returned. If a $link resource is passed to ingres_errno(3) it returns the last error recorded for the link. If no link is passed, then ingres_errno(3) returns the last error reported using the default link. The function, ingres_errno(3), should always be called after executing a database query. Calling another function before ingres_errno(3) is called will reset or change any error code from the last Ingres function call.PARAMETERSo $link - The connection link identifierRETURN VALUESReturns an integer containing the last error number. If no error was reported, 0 is returned.EXAMPLESExample #1 Get the last Ingres error number generated <?php $link = ingres_connect($database, $user, $password); $result = ingres_query($link, "select * from table"); $error_code = ingres_errno($link); if ( $error_code != 0 ) { echo "An error occurred - " . $error_code; } ?>SEE ALSOingres_error(3), ingres_errsqlstate(3), ingres_next_error(3). PHP Documentation Group INGRES_ERRNO(3)
Related Man Pages |
---|
ingres_charset(3) - php |
ingres_errno(3) - php |
ingres_fetch_proc_return(3) - php |
ingres_query(3) - php |
ingres_unbuffered_query(3) - php |
Similar Topics in the Unix Linux Community |
---|
copy, clear and keep to new data only |
Application link error with gcov |
Ingres 9.3.0 build 111 (Default branch) |
Ingres 9.3.0 build 119 (Default branch) |