i have a problem with array i have 2 table please check attachment
$sqlQuery=mysql_query("select * from tbl_page_detail where page_name='Home'");
$sqlArr=mysql_fetch_array($sqlQuery);
$arr = explode(",", $sqlArr['page_cat']);
$arrsize=count($arr);
$arrsizefloat=ceil($arrsize/2);
for($i=1;$i<=$arrsizefloat;$i++){?>
<? for($f=1;$f<=$arrsize;$f++){
if($f%2){
echo $val=$f-$i;
$yahoo[]=$val;
} else {
$yahoon[]=$val;}
}
$comma_separated = implode(",", $yahoo);
}
i want to fetch category name from tbl_category table, but these category comes from tbl_page_detail in array form,
thanks in advance