如何仅将一个类别显示在我的志愿者模板上?

时间:2018-06-28 19:18:07

标签: java php jquery ajax

我试图在此页面上仅显示一个类别“儿童”,但它拉动了我的所有类别。

这是一些代码

//category options
$categories = $_GET['categories'];
$day = $_GET['day'];
$childcare = $_GET['childcare'];
$category;
$categoryTitles;
$categoryArray = array();
if($categories!=''){
array_push($categoryArray, $categories);
}
if($day!=''){
array_push($categoryArray, $day);
}
if($childcare!=''){
array_push($categoryArray, $childcare);
}
array_push($categoryArray,"volunteer");//the last one should be 
volunteer parent category

if(count($categoryArray) > 0){
$category = implode("&&",$categoryArray);
}

我想念什么吗?

我竭尽所能让Just孩子出现。

0 个答案:

没有答案