Function ze\sql::select()

In PHP:
ze\sql::select(
$sql, $storeResult = true
)

Description

This function lets you run a SQL SELECT query against the current database.

Parameters

$sql

A string containing a SQL query. This must be a SELECT query. It must not be a DELETE/INSERT/REPLACE/UPDATE query.

Return Value

Returns a MySQLi results object that you can use with the sqlFetchAssoc(), sqlFetchRow() and sqlNumRows() functions.

Note that in the event of a a database error, this function will stop execution with an exit command, rather than return a value.