$rel=@mysql_query("select * from ".BOARD_CATEGORY." where parent=$cno and depth=2 and ck='y'");
$tot=@mysql_affected_rows();
for($a=0;$a<$tot;$a++) {
$ro=@mysql_fetch_object($rel);
$rel2=@mysql_query("select * from ".BOARD_CATEGORY." where parent=$ro->cno and depth=3 and ck='y'");
$tot2=@mysql_affected_rows();
?>
0){?>
}else{?>
}?>
}?>