diff --git a/Forum/insert_sujet.php b/Forum/insert_sujet.php index 475a385c1ac6343745fd9b9c14e40d6323fdddb3..1976be72b55c74c31b7d7eb3e215b3bbc059b003 100644 --- a/Forum/insert_sujet.php +++ b/Forum/insert_sujet.php @@ -55,7 +55,7 @@ if (isset ($_POST['go']) && $_POST['go']=='Poster') { // si tout est bon, on peut commencer l'insertion dans la base else { // on se connecte à notre base - $base = pg_connect ("host=localhost dbname=gn password user"); + $base = pg_connect ("host=localhost dbname=gn password=$passbd user=$userbd"); // on calcule la date actuelle $date = date("Y-m-d H:i:s");