public prepare (mixed $sqlStatement)
Returns a PDO prepared statement to be executed with ‘executePrepared’
1 2 3 4 | use Phalcon\Db\Column; $statement = $db ->prepare( 'SELECT * FROM robots WHERE name = :name' ); $result = $connection ->executePrepared( $statement , [ 'name' => 'Voltron' ], [ 'name' => Column::BIND_PARAM_INT]); |
Please login to continue.