Keywords:
 
 
 
 
 
 
Food categories
2) { $next_range_end = substr($range_end,2); } else { $next_range_end = 0; } } $today = date("Ymd"); ?>
= curdate() AND withdraw='n' and (catenum between '$catenum' and ('$catenum' + $next_range_end)) "; } else if($sub_catenum == '2') { $sub_table = "f_recipe"; $query3 = "select anum from $sub_table where withdraw='n' and (catenum between '$catenum' and ('$catenum' + $next_range_end)) "; } else if($sub_catenum == '3') { $sub_table = "f_grocery"; $query3 = "select anum from $sub_table where end >= curdate() AND withdraw='n' and (catenum between '$catenum' and ('$catenum' + $next_range_end)) "; } else { if(!$c) { $query3 = "select anum from e_auct_master LEFT JOIN e_company USING(school_no) where valid >= curdate() AND withdrawn IS NULL and (catenum between '21000000' and ('21000000' + $next_range_end)) "; } else { $query3 = "select anum from e_auct_master LEFT JOIN e_company USING(school_no) where valid >= curdate() AND withdrawn IS NULL and (catenum between '$catenum' and ('$catenum' + $next_range_end)) "; } } } else { if(!$c) { $query3 = "select anum from e_auct_master LEFT JOIN e_company USING(school_no) where valid >= curdate() AND withdrawn IS NULL and (catenum between '21000000' and ('21000000' + $next_range_end)) "; } else { $query3 = "select anum from e_auct_master LEFT JOIN e_company USING(school_no) where valid >= curdate() AND withdrawn IS NULL and (catenum between '$catenum' and ('$catenum' + $next_range_end)) "; } } $result3 = mysqli_query($query3,$connect); $total_count = @mysqli_num_rows($result3); if(!fmod($i,2)) { echo(" "); } echo(" "); if(!fmod($i,2)) { if($j == ($total -1)) { echo(" "); } else { echo(" "); } } else if(fmod($i,2)) { echo(" "); } } // 1st column of Category ends ?>
"); if(isset($page) && $page_from == 'index') { echo(" $catename "); } else { if($cook) { $s_ck = 'y'; $catenum = $catenum; } else { if($catenum == '4000000') { $s_ck = 'y'; $catenum = '21000000'; } else { $s_ck = ''; $catenum = $catenum; } } echo(" $catename "); } if($total_count>$listnum){ echo "($total_count)"; } echo("