Parameters:

resource

$stmt

—

a DB statement resource returned from prepare()

mixed

$data

—

array, string or numeric data to be used in execution of the statement. Quantity of items passed must match quantity of placeholders in query: meaning 1 for non-array items or the quantity of elements in the array.

Parameters:

string

$query

—

the query to modify

int

$from

—

the row to start to fetching (0 = the first row)

int

$count

—

the numbers of rows to fetch

mixed

$params

—

array, string or numeric data to be used in execution of the statement. Quantity of items passed must match quantity of placeholders in query: meaning 1 placeholder for non-array parameters or 1 placeholder per array element.