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 689

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