deletes and fixes

This commit is contained in:
Ricsi
2019-03-27 22:59:40 +00:00
parent 4ddc2ec2e9
commit 999ace3149
122 changed files with 522 additions and 16020 deletions

View File

@@ -2,10 +2,10 @@
//tag listánál ez adja vissza a keresés eredményét
ini_set('include_path', '../_class/');
include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach-demo.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
//megnézzük, hogy a KID benne van-e olyan category-val, ami az adott grouphoz tartozik
//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
//ha nem, akkor beszúrjuk az új category ID-val
if ($_POST['category_id'] == 'null') {
@@ -36,7 +36,7 @@ if ($sql->num_of_rows($ugk_query)) {
}
else {
$sql->update_table('user_group_kid', array('ugk_category_ugc_id' => $_POST['category_id']), array('ugk_id' => $ugk_id));
}
}
@@ -60,4 +60,4 @@ else {
}
}
?>
?>