UNB Components Code Reference

UnbDatabase::QueryRecord method

Executes an SQL statement and returns the first record.

public function UnbDatabase::QueryRecord ($sql, $parameters = null);

Parameters

sql

(string) SQL statement
(PDOStatement) Already prepared statement

parameters  –  optional, default: null

(array) Parameters to be used in this SQL statement, null if no parameters are used.

Return value

The first record

Exceptions thrown

UnbDatabaseException 

If the statement could not be prepared or executed.

Member of class: UnbDatabase

Implementation file: database.class.php, line 851

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-06.