Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ingres_errno(3) [php man page]

INGRES_ERRNO(3) 							 1							   INGRES_ERRNO(3)

ingres_errno - Get the last Ingres error number generated

SYNOPSIS
int ingres_errno ([resource $link]) DESCRIPTION
Returns 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. PARAMETERS
o $link - The connection link identifier RETURN VALUES
Returns an integer containing the last error number. If no error was reported, 0 is returned. EXAMPLES
Example #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 ALSO
ingres_error(3), ingres_errsqlstate(3), ingres_next_error(3). PHP Documentation Group INGRES_ERRNO(3)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

copy, clear and keep to new data only

I have an Ingres database logfile that grows constantly, iircp.log. It is always "attached" to the Ingres process that uses it, and I do not want to screw up the data. I have been copying it to another directory and then using vi on the original to reduce the size 34000 lines at a time. What I want... (1 Reply)
Discussion started by: sarge
1 Replies

2. Debian

Application link error with gcov

Hi, I'm trying gcov on my Debian VM. gcov (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Copyright (C) 2006 Free Software Foundation, Inc. It work with example program, but I got link error in my application code. C_FLAGS += -Wall -W -O0 -fprofile-arcs -ftest-coverage Each class... (1 Reply)
Discussion started by: clho
1 Replies