Skip to content
This repository was archived by the owner on Apr 6, 2019. It is now read-only.

[Class] MultiDatabasePDOStatement

WulfGamesYT edited this page Mar 10, 2019 · 10 revisions

Here is the list of all the functions in the latest version.
WARNING: Some functions might not be available, or some functions might work differently in older versions.

Constructor

public function __construct(array $pdoDatabases, string $query)

$pdoDatabases
The array of PDO connections for each prepared statement to be run with.

$query
The SQL query

PLEASE NOTE: You won't need to use new MultiDatabasePDOStatement() in your code, instead can use the prepare method in the MultiDatabasePDO class which will return a new instance of this MultiDatabasePDOStatement class.

Function: bindValue

public function bindValue($nameOrNumber, $value)

$nameOrNumber
The name or number of the placeholder (must precede with a colon ':' if using a string placeholder).

$value
The variable or value to pass to the placeholder.

Clone this wiki locally