File path: dist/twist/Core/Helpers/Database.helper.php
Namespace: Twist\Core\Helpers
Extends: Base
query
— Run 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 | Description |
---|---|
$strQuery | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strQuery = 'foo';
//Call the function query with the example vars
Twist::Database() -> query($strQuery);