我的 index.php 文件:
<?php
$query = mysql_query("SELECT `pic_id` FROM image_tag ORDER BY `pic_id`");
while($run = mysql_fetch_array($query)){
$pic_id = $run['pic_id'];
$left = $run['left'];
$top = $run['top'];
?>
<div id = "taggednum" style = "top:<?php echo $top; ?>; left:<?php echo $left; ?>;">
<ol><li rel ="<?php echo $pic_id; ?>"></li></ol>
</div>
<?php
}
?>
它没有在列表中显示正确的数字。整个列表编号为“1”。这里有什么问题?