UNB Components Code Reference

UnbDatabase::Prepare method

Prepares an SQL statement.

public function UnbDatabase::Prepare ($sql);

Parameters

sql
(string) SQL statement.

Return value

a PDOStatement object

Exceptions thrown

InvalidArgumentException On invalid argument type.
BadMethodCallException If the database is not opened.
UnbDatabaseException If the statement could not be prepared.

Member of class: UnbDatabase

Implementation file: database.class.php, line 578

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.