我试图在此页面上仅显示一个类别“儿童”,但它拉动了我的所有类别。
这是一些代码:
//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孩子出现。