From 12f6cc3a6f90a67c1d922dd3d46a368b1066dee1 Mon Sep 17 00:00:00 2001 From: Julien Sere Date: Sat, 22 Jan 2011 11:50:29 +0000 Subject: Implémentation de user et game. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2011-usi/trunk@8 db941bf7-0cb3-4dda-9634-87faf64f93a7 --- app/v1_php/api/mysql_connect.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/v1_php/api/mysql_connect.inc.php') diff --git a/app/v1_php/api/mysql_connect.inc.php b/app/v1_php/api/mysql_connect.inc.php index 0414480..9cd7211 100644 --- a/app/v1_php/api/mysql_connect.inc.php +++ b/app/v1_php/api/mysql_connect.inc.php @@ -3,9 +3,12 @@ $mysqlcon=mysql_connect("localhost", "usi2011", "usi2011"); $res=mysql_select_db("usi2011"); -if ( ! is_resource($mysqlcon) || $res !== 0) { + +if ( ! is_resource($mysqlcon) || $res !== true) { //header 400, Erreur connexion SQL echo "Erreur connexion SQL\n"; exit(); + } + ?> -- cgit v1.2.3