Database Operations
Introduction
You can make the products you develop dynamic with database operations. There are examples for database operations in these documentation. You can use these examples for the following; Class File Theme File Hook Files
Create a Query
SELECT It is written as WDB::select(arg1) You can type the column names in arg1 or leave it blank. Returns the class content as the return value. FROM It is written as WDB::from(arg1) You must write the table name inside arg1 Returns the class content as th...
INSERT
The methods required to create a new row in the table in the database are explained below. INSERT It written as WDB::insert(arg1,arg2) Inserts the data defined in it as a new row in a table. You must write the table name in the arg1 value. You can define va...
UPDATE
The methods required to update an existing row in the table in the database are given below. UPDATE It is written as WDB::update(arg,arg2) You can define the table name to arg1 value, optionally to arg2 value you can define "SET" values in data type "ARRAY"....
DELETE
The methods required to delete a row from a table in the database are described below. DELETE It written as WDB::delete(arg1) You must write the table name in the arg1 value. Returns the class content as the return value. WHERE For detailed information, che...