mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
fix example; remove PHP 5 changelog
This commit is contained in:
parent
fa6c013865
commit
fc54f9a81a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue