timmah1 Posted June 3, 2008 Share Posted June 3, 2008 How do you get results from a database to go from side-to-side, instead of up & down? I've done this before, but for the life of me, I cannot remember how. I have 54 records that I want to display. 9 across, and 6 down. How is this done? Thanks in advance Quote Link to comment Share on other sites More sharing options...
revraz Posted June 3, 2008 Share Posted June 3, 2008 With HTML Tables, using Rows. Quote Link to comment Share on other sites More sharing options...
timmah1 Posted June 3, 2008 Author Share Posted June 3, 2008 I'm aware of that, but I don't remember how Any advice? Quote Link to comment Share on other sites More sharing options...
revraz Posted June 3, 2008 Share Posted June 3, 2008 From the FAQ area http://www.phpfreaks.com/forums/index.php/topic,95426.0.html Quote Link to comment Share on other sites More sharing options...
sasa Posted June 3, 2008 Share Posted June 3, 2008 last part of script // clean up table - makes your code valid! if($i < $max_columns) { for($j=$i; $j<$max_columns;$j++) echo "<td> </td>"; } ?> </tr> </table> must be // clean up table - makes your code valid! if($i > 0) // $i is always be less then $max_columns { for($j=$i; $j<$max_columns;$j++) echo "<td> </td>"; } ?> </tr> </table> Quote Link to comment Share on other sites More sharing options...
revraz Posted June 3, 2008 Share Posted June 3, 2008 Did you send that to Ober so he can fix the snippet? 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.