camps 1
This commit is contained in:
15
_ajax/get_camp_shuttle_list.php
Normal file
15
_ajax/get_camp_shuttle_list.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
ini_set('include_path', '../_class/');
|
||||
include('class_sql.php');
|
||||
include('../_include/include_db_conn.php');
|
||||
|
||||
//lekérjük a labda típusokat
|
||||
$shuttle_assoc_array = $sql->assoc_array("SELECT * FROM camp_shuttle JOIN camp_shuttle_type on cst_id = cs_shuttle_id WHERE cs_camp_id = " . $_POST['camp_id']);
|
||||
|
||||
$shuttle_array = array();
|
||||
foreach ($shuttle_assoc_array as $shuttle) {
|
||||
$shuttle_array[$shuttle['cst_id']] = $shuttle['cst_name'];
|
||||
}
|
||||
|
||||
echo json_encode($shuttle_assoc_array);
|
||||
?>
|
||||
Reference in New Issue
Block a user