1 # pq\Result pq\Connection::execParams(string $query, array $params[, array $types = NULL])
3 [Execute an SQL query](pq/Connection: Executing Queries) with properly escaped parameters substituted.
10 The parameter list to substitute.
11 * Optional array $types = NULL
12 Corresponding list of type OIDs for the parameters.
20 * pq\Exception\InvalidArgumentException
21 * pq\Exception\RuntimeException
22 * pq\Exception\DomainException
27 $c = new pq\Connection;
29 $result = $c->execParams("SELECT int($1) * s, int($2) * s, int($3) * s
30 FROM generate_series(1,3) s", array(1,2,3));