Aplus Framework Docs

PreparedStatement
in package

Class PreparedStatement.

Table of Contents

$sendingBlob  : bool
$statement  : mysqli_stmt
__construct()  : mixed
exec()  : int|string
Executes the prepared statement and return the number of affected rows.
query()  : Result
Executes the prepared statement, returning a result set as a Result object.
sendBlob()  : bool
bindParams()  : void

Properties

Methods

__construct()

public __construct(mysqli_stmt $statement) : mixed
Parameters
$statement : mysqli_stmt
Return values
mixed

exec()

Executes the prepared statement and return the number of affected rows.

public exec(bool|float|int|string|null ...$params) : int|string
Parameters
$params : bool|float|int|string|null

Parameters sent to the prepared statement

Return values
int|string

query()

Executes the prepared statement, returning a result set as a Result object.

public query(bool|float|int|string|null ...$params) : Result
Parameters
$params : bool|float|int|string|null

Parameters sent to the prepared statement

Tags
throws
RuntimeException

if it cannot obtain a result set from the prepared statement

Return values
Result

sendBlob()

public sendBlob(string $chunk) : bool
Parameters
$chunk : string
Return values
bool

bindParams()

protected bindParams(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>

Values types: bool, float, int, string or null

Return values
void

Search results