Db\Adapter\Pdo::executePrepared

public PDOStatement executePrepared (PDOStatement $statement, array $placeholders, array $dataTypes)

Executes a prepared statement binding. This function uses integer indexes starting from zero

use Phalcon\Db\Column;

 $statement = $db->prepare('SELECT * FROM robots WHERE name = :name');
 $result = $connection->executePrepared($statement, ['name' => 'Voltron'], ['name' => Column::BIND_PARAM_INT]);
doc_Phalcon
2016-10-16 09:49:06
Comments
Leave a Comment

Please login to continue.