Gladius::Query($sql)
Previous  Next

Execute an SQL statement and return the resultset or success value. SQL statements do not need to be terminated by a semicolon ';'; each string can contain only a single SQL statement.

(string) $sql
String containing the SQL statement

(mixed) Return value
An object of type Gladius_Resultset or a boolean value indicating the success of the command execution.
The Gladius::errno and Gladius::errstr properties will indicate the error/success status and message.