added new mysql user

This commit is contained in:
Tóth Richárd
2019-08-08 14:32:01 +02:00
parent 37c78cf2f3
commit f10bfacf16
7 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
ini_set('include_path', '../_class/');
include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
//megnézzük, hogy a KID benne van-e olyan category-val, ami az adott grouphoz tartozik
//ha igen, akkor, akkor updateljük a categoryját

View File

@@ -3,7 +3,7 @@
ini_set('include_path', '../_class/');
include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
if ($_POST['parent_id'] == 'null') {
return false;

View File

@@ -3,7 +3,7 @@
ini_set('include_path', '../_class/');
include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
if (empty($_GET['template_id'])) {
echo json_encode(null);

View File

@@ -3,7 +3,7 @@
ini_set('include_path', '../_class/');
include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
if (empty($_GET['trt_id'])) {
echo json_encode(null);

View File

@@ -3,7 +3,7 @@
ini_set('include_path', '../_class/');
include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
$filter1 = "";
if (!empty($_POST['uk_filter_name'])) {

View File

@@ -8,7 +8,7 @@ foreach ($_POST as $key => $value) {
}
*/
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
$check_query = "SELECT * FROM presence WHERE pr_training_tr_id = " . $_POST['tr_id'] . " AND pr_user_kid_uk_id = " . $_POST['user_id'] . ";";