This is an old revision of the document!
mixed getRow ( mixed $sql optional string $bindvars )
The function executes a statement and returns the first row of the recordset in an array or false if the statement execution fails. If no records match the provided SQL statement, an empty array is returned.
For a detailed description of the SQL and bind parameters passed, see execute().
The statement is not the equivalent of
selectLimit($SQL,1). If multiple records are returned by the statement execution, all records after the first are destroyed. Reading large tables with a broad recordset selection may be slow,
/* * DB2 Connection assumed */ $ar = $db->getRow("SELECT * FROM ACT"); /* * $ar returns: Array (  => 10  => MANAGE  => MANAGE/ADVISE ) */