PHP Ingres II Functions

EditRocket provides the following information on Ingres II functions in the PHP source code builder.

bool ingres_autocommit ([ resource $link ] ) -

bool ingres_close ([ resource $link ] ) - ingres_close() closes the connection to the Ingres server that's associated with the specified link.

bool ingres_commit ([ resource $link ] ) - ingres_commit() commits the currently open transaction, making all changes made to the database permanent.

resource ingres_connect ([ string $database [, string $username [, string $password [, array $options ]]]] ) - ingres_connect() opens a connection with the given Ingres database.

string ingres_cursor ([ resource $link ] ) - Returns an string containing the active cursor name. If no cursor is active then NULL is returned.

int ingres_errno ([ resource $link ] ) - Returns an integer containing the last error number. If no error was reported 0 is returned.

string ingres_error ([ resource $link ] ) - Returns a string containing the last error, or NULL if no error has occurred.

string ingres_errsqlstate ([ resource $link ] ) - Returns a string containing the last SQLSTATE, or NULL if no error has occurred.

array ingres_fetch_array ([ int $result_type [, resource $link ]] ) -

object ingres_fetch_object ([ int $result_type [, resource $link ]] ) -

array ingres_fetch_row ([ resource $link ] ) - ingres_fetch_row() returns an array that corresponds to the fetched row, or FALSE if there are no more rows. Each result column is stored in an array offset, starting at offset 1.

int ingres_field_length ( int $index [, resource $link ] ) - ingres_field_length() returns the length of a field. This is the number of bytes used by the server to store the field. For detailed information, see the Ingres/OpenAPI User Guide - Appendix C.

string ingres_field_name ( int $index [, resource $link ] ) - ingres_field_name() returns the name of a field in a query result.

bool ingres_field_nullable ( int $index [, resource $link ] ) - Test if a field is nullable.

int ingres_field_precision ( int $index [, resource $link ] ) - ingres_field_precision() returns the precision of a field. This value is used only for decimal, float and money SQL data types. For detailed information, see the Ingres/OpenAPI User Guide - Appendix C.

int ingres_field_scale ( int $index [, resource $link ] ) - ingres_field_scale() returns the scale of a field. This value is used only for the decimal SQL data type. For detailed information, see the Ingres/OpenAPI User Guide - Appendix C.

string ingres_field_type ( int $index [, resource $link ] ) - Get the type of a field in a query result.

int ingres_num_fields ([ resource $link ] ) -

int ingres_num_rows ([ resource $link ] ) - This function is mainly meant to get the number of rows modified in the database.

resource ingres_pconnect ([ string $database [, string $username [, string $password ]]] ) - Open a persistent connection to an Ingres II database.

bool ingres_query ( string $query [, resource $link ] ) - ingres_query() sends the given query to the Ingres server.

bool ingres_rollback ([ resource $link ] ) - ingres_rollback() rolls back the currently open transaction, actually canceling all changes made to the database during the transaction.