21,886
社区成员
发帖
与我相关
我的任务
分享
<html>
<body>
<table border=1 width=500>
<tr>
<td>
<table border=1>
<tr>
<td width="100" height="50">2011-9-9</td>
<td>
<table border=1>
<tr>
<td width="100" height="25">张三</td>
<td width="100" height="25">20</td>
<td width="100" height="25">男</td>
<td width="100" height="25">北京</td>
</tr>
<tr>
<td width="100" height="25">李四</td>
<td width="100" height="25">30</td>
<td width="100" height="25">男</td>
<td width="100" height="25">杭州</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<table align="center" width="500">
<tr>
<td width="100" height="60">时间</td>
<td width="100">姓名</td>
<td width="100">年龄</td>
<td width="100">性别</td>
<td width="100">地址</td>
</tr>
<?php
while($res=mysql_fetch_array($conn))
{
?>
<tr>
<td><?=$res["ctime"]?></td>
<td><?=$res["cname"]?></td>
<td><?=$res["cage"]?></td>
<td><?=$res["csex"]?></td>
<td><?=$res["cadd"]?></td>
</tr>
<?php
}
mysql_close();
exit();
?>
</table>
这个是我输出的程序