diff --git a/_ajax/update_presence.php b/_ajax/update_presence.php index 60a777d..da46f76 100644 --- a/_ajax/update_presence.php +++ b/_ajax/update_presence.php @@ -7,8 +7,8 @@ foreach ($_POST as $key => $value) { trigger_error($_SERVER['HTTP_HOST'], E_USER_NOTICE); } */ -if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach'); -else $sql = new sql('bc_mysql','tollashodos','uprRscU8bGpJ','tollashodos'); +if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach'); +else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos'); if ($_POST['checked'] == "true") {