update page now

Voting

: eight plus zero?
(Example: nine)

The Note You're Voting On

Michael
11 years ago
using  pg_escape_bytea without 'E' escape tag
<?php 
  // Die Binärdaten maskieren
  $escaped = pg_escape_bytea($data);

  // und in die Datenbank einfügen (falsch/wrong)
  pg_query("INSERT INTO gallery (name, data) VALUES ('Pine trees', E'$escaped')");

  // und in die Datenbank einfügen (richtig/right)
  pg_query("INSERT INTO gallery (name, data) VALUES ('Pine trees', '$escaped')");
?>

<< Back to user notes page

To Top