spokes
Full Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](avatar.php?uid=32048-12013)
I <3 Rollerblading
Posts: 423 Reputation: 10
33 / / ![United Kingdom Flag](images/flags/gb.png)
Joined: May 2004
|
O.P. RE: simple php help
quote: Originally posted by Leo
$cols = 4;
$now = 0;
echo '<table><tr>';
while($d = mysql_fetch_assoc($sql_query)) {
echo '<td>'.$d['column1'].'</td>';
$now++;
if($now == $cols) {
echo '</tr><tr>';
$now = 0;
}
}
echo '</tr></table>';
thanks, it works ![:D](images/smilies/msn_grin.gif)
|
|