php+mysql怎么一行显示多列
我的代码是带分页的现在是 一行一列 怎么改成一行3列
<table width="641" border="0" cellpadding="0" cellspacing="0" bgcolor="#F9F9F9">
<!--DWLayoutTable-->
<?php
$aa="select * from zp";
$result = mysql_query($aa,$Conn); //mysql_query 送出一个查询
$total = mysql_num_rows($result);
$pagesize=15;
if (($total%$pagesize)!=0)
$totalpage=intval($total/$pagesize)+1;
else
$totalpage=intval($total/$pagesize);
if (empty($_GET['pagenum'])){
$_GET['pagenum']=1; }
if($total!=0){
mysql_data_seek($result,(($_GET['pagenum']-1)*$pagesize));
}
$i=1;
while($row=mysql_fetch_array($result)) //mysql_fetch_array 传回数组信息资料
{
?>
<tr>
<td width="634" height="80" align="center" valign="middle"><a href="kjj.php?id=<?php echo $row["id"]?>" target="kjj"><img src="cp/<?php echo $row["tp"]?>" width="80" height="80" border="0"></a></td>
</tr>
<?php
$i++;
if ($i>$pagesize)
break;
else
continue;
}
?>
</table>