fix example; remove PHP 5 changelog

This commit is contained in:
Martin Samesch 2021-02-02 11:58:19 +01:00
parent fa6c013865
commit fc54f9a81a

View file

@ -110,7 +110,7 @@
// This is safe somewhat, since all values are escaped.
// However PostgreSQL supports JSON/Array. These are not
// safe by neither escape nor prepared query.
$res = pg_delete($db, 'post_log', $_POST);
$res = pg_insert($dbconn, 'post_log', $_POST, PG_DML_ESCAPE);
if ($res) {
echo "POST data is deleted: $res\n";
} else {