Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.
ratajs edited this page Feb 13, 2017 · 1 revision

Select

This method returns and saves code of SELECT command, this command finds saved data in the table. Syntax:
$object->select(string $table[, string $order = NULL[string $orderType = "ASC", [, array $cols = array("*")]]])
Object
- Object of extension.
Table
- Table name.
Order
- Name of column, which will be order argument. If it’s NULL, order argument will be time of adding.
OrderType
- ASC or DESC, order direction.
Cols
- List of columns with values, which will fetch(), fetchArray() or fetchAll() method return. If it’s array("*"), these methods will return all columns.
Clone this wiki locally