action (method)

Last updated: Thu, Jan 12, 2023 3:32 pm
Return to Knowledgebase


This method is used internally by the DB class to pass SQL queries and tables to the database



Version Information

First Introduced v2.5.0


# Parameter Data Type Required Description
1 $action string Yes The body of your SQL query
2 $table string Yes The table you wish to perform this query on
3 $where = [] array Yes Allows you to pass a where clause in the format of (columnName, operator, data). For instance to find every user who has a first name of Dan, you would use ("fname","=","Dan").


Data Type Description of Returned Data
nothing By default this method does not return anything and should be tied together with the other methods such as first, results, or count.


$db->action("SELECT *","users");

Further Documentation:

There is really no advantage to using this method, but it is available externally in case you need it.