table problem in loop
Posted
by air
on Stack Overflow
See other posts from Stack Overflow
or by air
Published on 2010-03-13T10:15:59Z
Indexed on
2010/03/13
10:25 UTC
Read the original article
Hit count: 273
i have one table in loop which come under li>
<?php
for($i=1;$i<=$tc;$i++)
{
$row=mysql_fetch_array($result);
?>
<li style="list-style:none; margin-left:-20px">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="hline" style="width:267px"><?php echo $row['tit'] .",". $row['name'] ?></td>
<td class="vline" style="width:1px"> </td>
<td class="hline" style="width:100px"><?php echo $row['city']; ?></td>
</tr>
</table>
</li>
<?php
}
?>
the out put comes like this
- i can't put table outside the loop, due to li> sorting
thanks
© Stack Overflow or respective owner