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: 275

Filed under:
|

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">&nbsp;</td>
<td class="hline" style="width:100px"><?php echo $row['city']; ?></td>
  </tr>
 </table>
</li>
<?php
}
?>

the out put comes like this

alt text

  • i can't put table outside the loop, due to li> sorting

thanks

© Stack Overflow or respective owner

Related posts about html

Related posts about table