Home > PHP > Function > PostgreSQL > pg_send_query_params()

pg_send_query_params()

pg_send_query_params - Submits a command and separate parameters to the server without waiting for the result(s).

Syntax

bool pg_send_query_params (resource $connection, string $query, array $params)

Arguments

  • connection - PostgreSQL database connection resource.
  • query - The parameterized SQL statement. Must contain only a single statement. (multiple statements separated by semi-colons are not allowed.) If any parameters are used, they are referred to as $1, $2, etc.
  • params - An array of parameter values to substitute for the $1, $2, etc. placeholders in the original prepared query string. The number of elements in the array must match the number of placeholders.

Description

Submits a command and separate parameters to the server without waiting for the result(s).

Version

PHP 5.1.0

Return value

Returns TRUE on success or FALSE on failure.