تفضل
كود PHP:
$sql=mysql_query("select * from saying limit 4");
echo "<table align='right' border='1' width='300'>";
while($row=mysql_fetch_array($sql)){
$id=$row['id'];
echo'<td align="center">'.$id.' ID</td>';
$tableid++;
if($tableid==2){
echo'</tr>';
$tableid=0;
}
}
echo "</tr></table><br>";