$sql ="select * from info_class where id like '101___' order by sortnum asc limit 6";
$rst = $db -> query($sql);
while($row = $db -> fetch_array($rst)){
?>
$sql ="select * from info_class where id like '101___' order by sortnum asc";
$rst = $db -> query($sql);
while($row = $db -> fetch_array($rst)){
?>
$sql2 ="select * from info where class_id=".$row['id']." and pic<>'' and state>0 order by sortnum desc limit 8";
$rst2 = $db -> query($sql2);
while($row2 = $db -> fetch_array($rst2)){
?>
$sql ="select * from banner where class_id =7 and pic<>'' and state >0 order by sortnum desc limit 5";
$rst = $db -> query($sql);
while($row = $db -> fetch_array($rst)){
?>
=$row['title']?>
} ?>
$sql ="select * from banner where class_id =7 and pic<>'' and state >0 order by sortnum desc limit 5";
$rst = $db -> query($sql);
while($row = $db -> fetch_array($rst)){
?>
$sql ="select * from info where class_id = 103101 and pic<>'' and state >0 order by sortnum desc limit 1";
$rst = $db -> query($sql);
while($row = $db -> fetch_array($rst)){
?>
$sql ="select * from info where class_id like '106___' and pic<>'' and state >0 order by sortnum desc limit 5";
$rst = $db -> query($sql);
while($row = $db -> fetch_array($rst)){
?>
$sql ="select * from info_class where id like '106___' order by sortnum asc";
$rst = $db -> query($sql);
while($row = $db -> fetch_array($rst)){
?>
$sql2 ="select * from info where class_id=".$row['id']." and state >0 order by sortnum desc limit 3";
$rst2 = $db -> query($sql2);
while($row2 = $db -> fetch_array($rst2)){
?>