page:
<?php
if($child){
$child_arrary=explode(',',$arrchildid);
$to_url=$CATEGORYS[$child_arrary[1]][url];
echo"<script>window.location.href='".$to_url."'</script>";
}
?>
category:
<?php
if($child){
$child_arrary=explode(',',$arrchildid);
$to_url=$CATEGORYS[$child_arrary[0]][url];
echo"<script>window.location.href='".$to_url."'</script>";
}
?>
注意看$CATEGORYS[$child_arrary[0]][url]中$child_arrary的下标。