mysql 双循环对应问题
$strSql1 = "Select id From menu where subs_pid='13' Order By time ASC limit 0,11";
$res1 = _query($strSql1);
while (!!$rs=_fetch_array($res1)){
$subID[] = $rs['id'];//注意这里
echo "<span><a href="/#" >地板(等建材栏目)</a></span>\n";
}
mysql_free_result($res1);
foreach($subID as $id) {
echo '<dd><div>';
$strSql2 ="select pic1 from newslist where n_ppid='".$id."' order by n_time desc limit 0,12";
//这里是循环输出图片的代码
echo '</div></dd>';
}