string
$query, array
$params[, array
$types = NULL
])Execute an SQL query with properly escaped parameters substituted.
string
$query#array
$params#array
$types# = NULL
<?php
$c = new pq\Connection;
$result = $c->execParams("SELECT int($1) * s, int($2) * s, int($3) * s
FROM generate_series(1,3) s", array(1,2,3));
?>