Method: prepareAndDoQuery($query , $params)

Exectue a prepared statement consisting of $query interposed with $params. Results will then become a property of the database object accesible by InvDB::fetch() and InvDB::fetchAll().

Arguments:

$query (STRING) - a complete database query string, with placeholders for parameters
$params (ARRAY) - an array of values to be replaced into the prepared statement

Returns:

BOOL

Example:

$this->obj_db->prepareAndDoQuery('SELECT * FROM `document` WHERE `document_title` = ? AND `document_node` = ?' , array('Home' , 2));

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: info@dotadmin.com