public prepare (mixed $sqlStatement)
Returns a PDO prepared statement to be executed with ‘executePrepared’
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.