kpetsche20 Posted June 10, 2008 Share Posted June 10, 2008 How do I make a FOR LOOP Results show up in a column? Link to comment https://forums.phpfreaks.com/topic/109559-how-do-i-make-a-for-loop-results-show-up-in-a-column/ Share on other sites More sharing options...
Orio Posted June 10, 2008 Share Posted June 10, 2008 <?php for($i = 0; $i < 10; i++) echo $i."<br>"; ?> Orio. Link to comment https://forums.phpfreaks.com/topic/109559-how-do-i-make-a-for-loop-results-show-up-in-a-column/#findComment-561950 Share on other sites More sharing options...
kpetsche20 Posted June 10, 2008 Author Share Posted June 10, 2008 This is what I have right now and the results display going straight down the page. I want them to go down the page but I want 2 results to show up side by side to maximize space on the page. for ($x2= 0; $x2 < mysql_num_rows($resultID2); $x2++) { $row2 = mysql_fetch_assoc($resultID2); $dis_opt = $row2['prize_title']; } ?> <tr> <td width="145"><a href="index.php?p=redeem&item=<?=$row['id']?>"><img src="<?=$row['image']?>" border="0" /></a> <br><?=$row['desc']?><br><b>Price:</b> <?=$row['value']?></td> </tr> <? } Link to comment https://forums.phpfreaks.com/topic/109559-how-do-i-make-a-for-loop-results-show-up-in-a-column/#findComment-561953 Share on other sites More sharing options...
GingerRobot Posted June 10, 2008 Share Posted June 10, 2008 Call me old fashioned, but you could have tried putting that in your first post so we actually had a clue what you were talking about. Anywho, see this FAQ. Link to comment https://forums.phpfreaks.com/topic/109559-how-do-i-make-a-for-loop-results-show-up-in-a-column/#findComment-561956 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.