diff options
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(); + } + ?> |