summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/pg_select.inc
blob: 4d251bc9923c00fca36ddc57afc4532f1a5273b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
error_reporting(E_ALL);

include 'config.inc';

$db = pg_connect($conn_str);
$fields = array('num'=>'1234', 'str'=>'ABC', 'bin'=>'XYZ');
$ids = array('num'=>'1234');

$res = pg_select($db, $table_name, $ids) or print "Error\n";
var_dump($res);
echo pg_select($db, $table_name, $ids, PGSQL_DML_STRING)."\n";
echo "Ok\n";

?>