Usage
Syntax: requestsql(string query, boolean);
Returns object.
Explanation
Requestsql executes a sql query for the default database, the first argument is the query string.
Set the boolean to true if you expect a result (e.g. from a select-query); It will return the event object.
Example
function onCreated()
{
temp.req = requestsql("SELECT * FROM sqlite_master", true);
echo(temp.req.rows[0][2]);
}... Would output the name of the first table of the database sqlite_master.
Categories
CategoryFunctionServerside
There are no comments on this page. [Add comment]