
July 3rd, 2004, 04:58 PM
|
|
|
|
Join Date: Apr 2007
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
RE: multiple column
here is my code
php Code:
Original
- php Code |
|
|
|
<? include("header.php"); ?> <? $columns = 2; include('connect.php'); $query = "SELECT * FROM members ORDER BY id DESC"; echo "<TABLE BORDER="0 ">n"; for($i = 0; $i < $num_rows; $i++) { if($i % $columns == 1) { } echo "<TD><TR>" . "<img src="$row[image ] "/></img>" . "</TR></TD><TD><TR>" . $row['username'] . "</TR></TD>n"; if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_rows) { //if there is a remainder of 1, end the row //or if there is nothing left in our result set, end the row } } ?> <? include("footer.php");?>
Why is it that they are not showing in columns vertically?
|