query($sql[, $binds = FALSE[, $return_object = NULL]])
Parameters: |
|
---|---|
Returns: |
TRUE for successful “write-type” queries, CI_DB_result instance (method chaining) on “query” success, FALSE on failure |
Return type: |
mixed |
Execute an SQL query.
Accepts an SQL string as input and returns a result object upon successful execution of a “read” type query.
Returns:
- Boolean TRUE upon successful execution of a “write type” queries
- Boolean FALSE upon failure
-
CI_DB_result
object for “read type” queries
Please login to continue.