日期:2014-05-17 浏览次数:20651 次
<div height="23px" style="overflow: hidden;"> <table border="1px" cellpadding="0" cellspacing="0" width="98.5%"> <tbody> <tr class="tr" align="center" cols="5"> <td width="20%">姓名</td> <td width="20%">性别</td> <td width="20%">民族</td> <td width="20%">号码</td> <td width="20%">操作</td> </tr> </tbody> </table> </div> <div style="overflow: auto;height:230px;" > <table border="1px" cellpadding="0" cellspacing="0" width="100%"> <tbody> <?php $sql="select * from `test`"; $sqln=mysql_query($sql); while($row = mysql_fetch_array($sqln)){ ?> <tr class="tr1" align="center" cols="5"> <td width="20%"><?php echo $row[name];?></td> <td width="20%"><?php echo $row[sex];?></td> <td width="20%"><?php echo $row[nation];?></td> <td width="20%"><?php echo $row[number];?></td> <td width="20%">操作</td> </tr> <?php } ?> </tbody> </table> </div>