Perform a query on the database and return the array of all results
Parameters | |||
---|---|---|---|
string
|
$sql |
The SQL query string |
# |
array
|
$args = [] |
The array of placeholders and their values |
# |
int
|
$resultType = LC_FETCH_OBJECT |
The optional constant indicating what type of array should be produced. The possible values for this parameter are the constants LC_FETCH_OBJECT, LC_FETCH_ASSOC, or LC_FETCH_ARRAY. Default to LC_FETCH_OBJECT. |
# |
Returns | |
---|---|
array|boolean
|
The result array of objects or associated arrays or index arrays. If the result not found, return false. |