怎么样循环输出这样的代码?
在页面中有三个这样的表格,显示6条记录,要求,循环读取数据库,然后将数据库的数据填入表格,要求没有记录时,表格也要显示出来,不过所有的数据全为默认值,请问怎么写循环呢?
<table width= "100% " border= "1 " cellspacing= "1 " cellpadding= "1 ">
<tr>
<td align= "center " valign= "middle "> <img src= "../imgs/IMG_0052_1.gif " alt= " " "
width= "120 " height= "120 " /> </td>
<td> <ul style= "text-align:left; ">
<li> 姓名: <a href= "index_member.html "> 张三那 </a> </li>
<li> 性别:男 </li>
<li> 学历:大专 </li>
<li> 籍贯:江苏 </li>
</ul> </td>
<td align= "center "> <img src= "../imgs/Picture.jpg " alt= " " width= "120 " "
height= "160 " /> </td>
<td colspan= "2 "> <ul style= "text-align:left; ">
&nbs