<?php
$sql=mysql_query("select * from web_class");
$row=mysql_fetch_array($sql);
foreach($row as $rowcunt)
{?>
<dl>
<dt>
<a href="<?php echo $row["web_classid"]?>" hidefocus="true"><?php echo $row["classname"]?></a>
</dt>
<dd>
<?php
$sql=mysql_query("select * from web_smclass where class_id='".$row["web_classid"]."'");
while($row=mysql_fetch_array($sql))
{?>
<a href="<?php echo $row["smclass_id"]?>" hidefocus="true"><?php echo $row["smclass"]?></a>
<?php }?>
</dd>
</dl>
<?php }?>
各位,帮我看看,php有什么方法能在这循环里面在做一个循环吗?这个是我代码,帮忙看看,谢谢
犯罪嫌疑人X
繁星淼淼