Executes the given SQL query and returns the records
public Query ( string $sql ) : object | ||
$sql | string | The query string should not end with a semicolon |
Результат | object | PHP 'mysql result' resource object containing the records on SELECT, SHOW, DESCRIBE or EXPLAIN queries and returns; TRUE or FALSE for all others i.e. UPDATE, DELETE, DROP AND FALSE on all errors (setting the local Error message) |