INGRES_CURSOR(3) 1 INGRES_CURSOR(3)
ingres_cursor - Get a cursor name for a given result resource
SYNOPSIS
string ingres_cursor (resource $result)
DESCRIPTION
Returns a string with the active cursor name. If no cursor is active then NULL is returned.
PARAMETERS
o $result
- The query result identifier
RETURN VALUES
Returns a string containing the active cursor name. If no cursor is active then NULL is returned.
EXAMPLES
Example #1
Get cursor name for a query resource
<?php
$link = ingres_connect($database, $user, $password);
$result = ingres_prepare($link, "select * from table");
$cursor_name = ingres_cursor($result);
echo $cursor_name;
?>
SEE ALSO
ingres_prepare(3), ingres_execute(3).
PHP Documentation Group INGRES_CURSOR(3)