ניסיתי ככה ולא הצליח
PHP קוד:
echo "
<table border=\"1\" bordercolor=\"#06ACD4\" width=\"100%\" id=\"table1\">
<tr>";
$sql=mysql_query("SELECT * FROM picture");
while($row=mysql_fetch_array($sql))
{
$a="1";
$pic=$row["addres"];
$id=$row["id"];
$b=$a+1;
echo "
<td>
<p style=\"color: #245E93; font-family: Tahoma; font-size: 12\" align=\"center\">$pic</td>
";
if($b == "5")
{
echo "</tr>";
$a="1";
}
}
echo "</table>";