?php $db = pg_connect ('dbname=foo'); / / This is safe, since $_POST is converted automatically $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";}?
?php $db = pg_connect ('dbname=foo'); / / C'est correct, car $_POST est convertit automatiquement $res = pg_insert($db, 'post_log', $_POST); if ($res) {echo "Les donn eacute;es POST eacute;es ont pu ecirc;tre enregistr eacute;e avec succ egrave;s.\n";} else {echo "Il y a un probl egrave;me avec les donn eacute;es.\n";}?