summaryrefslogtreecommitdiff
path: root/app/v1_php/api/mysql_connect.inc.php
diff options
context:
space:
mode:
authorJulien Sere <jsere>2011-01-22 11:50:29 +0000
committerJulien Sere <jsere>2011-01-22 11:50:29 +0000
commit12f6cc3a6f90a67c1d922dd3d46a368b1066dee1 (patch)
treedce223a8bf2386ba0fa125414a6045df3ac198ca /app/v1_php/api/mysql_connect.inc.php
parent0180447ad17eb36e54dca74f9854657d7ec5fa9a (diff)
download2011-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.php5
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();
+
}
+
?>