odbc_cursor

string odbc_cursor(resource result) 

Displays a cursor.

Returns:

Cursor name

Description:

Gives the cursor name for the specified result ID.

Version:

Existing since version 3.0.6

Example:

Display cursor
$db = odbc_connect("DSN","user","pass"); 
$result = odbc_exec($db,"SELECT FirstName, LastName FROM Employees 
 ORDER BY LastName"); 
echo odbc_cursor($result); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.