English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The odbc_cursor() function retrieves the cursor name.
string odbc_cursor ( resource $result_id )
Used to get cursor information
It returns the cursor name as a string, otherwise it returns false.
Number | Parameters and Description |
---|---|
1 | result_id It contains a result identifier |
Try the following example
<?php $input_ID = odbc_connect("DSN", "user_id", "pass_id"); $result = odbc_exec($input_ID, "SELECT FirstName, LastName FROM Employees ORDER BY LastName"); echo odbc_cursor($result); ?>