kpetsche20 Posted June 10, 2008 Share Posted June 10, 2008 How do I make a FOR LOOP Results show up in a column? Quote Link to comment 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. Quote Link to comment 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> <? } Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.