A class defining a prepared database statement.
package |
CMS |
---|---|
author |
Robert Campbell |
copyright |
Copyright (c) 2017, Robert Campbell calguy1000@cmsmadesimple.org |
since | 2.2 |
property-read |
The database connection |
property-read |
The SQL query. |
__construct(\CMSMS\Database\Connection $conn, string $sql = null)
Bind(array $data)
array
$dataAn array of arrays of data representing the numerous rows of the input data.
set_bound_data(array $data)
array
$dataAn array of arrays of data representing the numerous rows of the input data.
EOF() : boolean
boolean
MoveFirst()
MoveNext()
Fields(string $col = null) : mixed
string
$colThe column name. If not specified, all columns will be returned.
mixed
Execute()
db : \CMSMS\Database\Connection
The database connection
\CMSMS\Database\Connection
sql : string
The SQL query.
string