ң

pg_insert

( PHP 4 CVS)

pg_insert - .

bool pg_insert (resource connection, string table_name, array assoc_array [, int options])

pg_insert() assoc_array, field=>value, table_name. options , pg_convert() assoc_array .

1. pg_insert
<?php $db = pg_connect ('dbname=foo'); // , $_POST $res = pg_insert($db, 'post_log', $_POST); if ($res) { echo "POST data is succesfully logged\n"; } else { echo "User must have sent wrong inputs\n"; } ?>

: .

. pg_convert() .


ң
pg_host pg_last_error