pg_query_params() - Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text.
pg_execute() - Sends a request to execute a prepared statement with given parameters, and waits for the result.
pg_num_rows() - Returns the number of rows in a result