<?php
ini_set('include_path', '../_class/');
include('class_sql.php');

if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');


//lekérjük a labda típusokat
$ck_assoc_array = $sql->assoc_array("SELECT * FROM camp_kid WHERE ck_id = " . $_POST['camp_kid_id']);

echo json_encode($ck_assoc_array);
?>