diff options
author | Julien Sere <jsere> | 2011-01-22 11:50:29 +0000 |
---|---|---|
committer | Julien Sere <jsere> | 2011-01-22 11:50:29 +0000 |
commit | 12f6cc3a6f90a67c1d922dd3d46a368b1066dee1 (patch) | |
tree | dce223a8bf2386ba0fa125414a6045df3ac198ca /app/v1_php/api/mysql_connect.inc.php | |
parent | 0180447ad17eb36e54dca74f9854657d7ec5fa9a (diff) | |
download | 2011-usi-12f6cc3a6f90a67c1d922dd3d46a368b1066dee1.tar.gz 2011-usi-12f6cc3a6f90a67c1d922dd3d46a368b1066dee1.tar.bz2 2011-usi-12f6cc3a6f90a67c1d922dd3d46a368b1066dee1.zip |
Implémentation de user et game.
git-svn-id: file:///var/svn/2011-usi/trunk@8 db941bf7-0cb3-4dda-9634-87faf64f93a7
Diffstat (limited to 'app/v1_php/api/mysql_connect.inc.php')
-rw-r--r-- | app/v1_php/api/mysql_connect.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
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(); + } + ?> |