DATA Methods

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]