TwistPHP Documentation


File path: dist/twist/Core/Helpers/Database.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

queryRun a fully formed SQL query on the database, optionally pass the query in as a raw sprintf() string "SELECT FROM `table` WHERE `id` = %d" followed by all the parameters to fill the string
All parameters are escaped before being entered into the sprintf(). A Database result object will be returned containing all the stats and results for the query.


Name Type Description

Return Values

void — No return information has been documented for this function.


//Set the variables for the example
$strQuery 'foo';

//Call the function query with the example vars
Twist::Database() -> query($strQuery);