Perform a query on the database
Parameters | |||
---|---|---|---|
string
|
$sql |
SQL query string |
# |
array
|
$args = [] |
Array of placeholders and their values array( ':placeholder1' => $value1, ':placeholder2' => $value2 ) The prefix colon ":" for placeholder is optional |
# |
Returns | |
---|---|
mixed
|
PDOStatement|boolean|string Returns PDOStatement on success or FALSE on failure |