From 0b387c0ed50672d309055d1efe230e6963d15373 Mon Sep 17 00:00:00 2001
From: Warren PONS <warren.pons@ensiie.fr>
Date: Sun, 5 Jun 2016 18:14:48 +0200
Subject: [PATCH] Update insert_sujet.php

---
 Forum/insert_sujet.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Forum/insert_sujet.php b/Forum/insert_sujet.php
index 475a385..1976be7 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");
-- 
GitLab