נסה את זה
PHP קוד:
echo " <table border=\"1\" bordercolor=\"#06ACD4\" width=\"100%\" id=\"table1\"> <tr>"; $sql=mysql_query("SELECT * FROM picture"); $a= "0"; while($row=mysql_fetch_array($sql)){ $a++; $pic=$row["addres"]; $id=$row["id"];
echo " <td><p style=\"color: #245E93; font-family: Tahoma; font-size: 12\" align=\"center\">$pic</td> "; if($a == "5"){ echo "</tr><tr>"; $a="1"; } } echo "</tr></table>";
__________________
Alter.
Last edited by Alter; 21-05-06 at 23:38..
|