spokes
Full Member
I <3 Rollerblading
Posts: 423 Reputation: 10
34 / /
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
|
|