Icon edb_execresult

Returns the execution result for a command.

Syntax
edb_execresult(<CommandHandle>)

<CommandHandle> =

Handle of command returned by edb_prepare function

Returns
Execution result (BOOLEAN) if successful, or FALSE
if there are any errors

Usage
The edb_execresult function returns the execution result for any text command that can return a result. At this time, only the VERIFY TABLE and REPAIR TABLE statements set an execution result.

Examples
<?php

// The following script connects to an ElevateDB
// Server and database, prepares a VERIFY TABLE
// statement, executes the statement, and then
// displays execution result

$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,"VERIFY TABLE customer");
$cursor = edb_execute($cmd);

echo edb_execresult($cmd);

edb_disconnect($con);
?>
Image