mirror of
https://github.com/php/php-src.git
synced 2024-10-12 03:52:33 +00:00
18 lines
276 B
PHP
18 lines
276 B
PHP
|
<?php
|
||
|
error_reporting(E_ALL);
|
||
|
|
||
|
include 'config.inc';
|
||
|
|
||
|
$db = pg_connect($conn_str);
|
||
|
|
||
|
$fields = array('num'=>'1234', 'str'=>'XXX', 'bin'=>'YYY');
|
||
|
$ids = array('num'=>'1234');
|
||
|
if (!pg_update($db, $table_name, $fields, $ids, 1, 0)) {
|
||
|
echo "Error\n";
|
||
|
}
|
||
|
else {
|
||
|
echo "Ok\n";
|
||
|
}
|
||
|
|
||
|
?>
|