Gets all column values for the current row in a cursor as an associative array.
Syntax
edb_getrow(<CursorHandle>)
<CursorHandle> =
Handle of cursor returned by edb_execute function
Returns
Associative array of column values if
successful, or FALSE if there are any errors
UsageThe edb_getrow function retrieves all of the column values for the current row in a cursor.
Examples
<?php
// The following script connects to an ElevateDB
// Server and database, prepares and executes a
// direct table open, and then displays the column
// values for the first row in the table
$con = edb_connect("type=remote;charset=Ansi;address=127.0.0.1;"+
"uid=Administrator;pwd=EDBDefault;database=Test");
if (!$con)
{
die("Could not connect: " . edb_errmsg());
}
$cmd = edb_prepare($con,"customer",EDB_COMMAND_TABLE);
$cursor = edb_execute($cmd);
var_dump(edb_getrow($cursor));
edb_disconnect($con);
?>