Since: 2.0
pods_query
Standardize queries and error reporting. It replaces @wp_ with $wpdb->prefix.
Function Definition
function pods_query ( $sql, $error = 'Database Error', $results_error = null, $no_results_error = null )
Source File: /pods/includes/general.php
Parameters
Parameter | Type | Details |
---|---|---|
$sql | (string) | SQL Query |
$error | (string) | (optional) The failure message |
$results_error | (string) | (optional) Throw an error if a records are found |
$no_results_error | (string) | (optional) Throw an error if no records are found |
Returns
(array|bool|mixed|null|void)