diff --git a/connectfourLearn.php b/connectfourLearn.php index 56ff9f3..54c3e4f 100644 --- a/connectfourLearn.php +++ b/connectfourLearn.php @@ -14,7 +14,7 @@ header('Content-Type: application/json'); //connexion mysql require_once("config.php"); -if (!$lnMySQL=mysqli_connect($config['mysql_host'], $config['mysql_user'], $config['pass'])) { +if (!$lnMySQL=mysqli_connect($config['mysql_host'], $config['mysql_user'], $config['mysql_pass'])) { error(500,'database connexion failed'); die; } @@ -428,4 +428,4 @@ switch($params['action']){ break; default: break; -} \ No newline at end of file +}