DATA Methods
Database functions
select(), fetch(), write(), update(), delete(), execute(), tables(), fields()Requests and temporary storage
request(), cookie(), session(), config(), store()Formatting data
encode(), decode(), json(), text(), date(), weekday(), month()Template data
content(), parents(), directory()
execute()
Execute any sql statement.
mixed execute( string sql [, string table ])
Return
Depends on SQL statement.
Parameter
Description
sqlThe SQL statement.
tableThe table concerned. This parameter is only required when working with multiple databases. If all data comes from the same database, you do not need to pass the table name.
Execute sql statement
$DATA->execute("SELECT * FROM data_api_object", "data_api_object")
RETURN: ARRAY [8]