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 Link to comment https://forums.phpfreaks.com/topic/108596-results-in-table/ Share on other sites More sharing options...
revraz Posted June 3, 2008 Share Posted June 3, 2008 With HTML Tables, using Rows. Link to comment https://forums.phpfreaks.com/topic/108596-results-in-table/#findComment-556912 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? Link to comment https://forums.phpfreaks.com/topic/108596-results-in-table/#findComment-556935 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 Link to comment https://forums.phpfreaks.com/topic/108596-results-in-table/#findComment-556938 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> Link to comment https://forums.phpfreaks.com/topic/108596-results-in-table/#findComment-556950 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? Link to comment https://forums.phpfreaks.com/topic/108596-results-in-table/#findComment-556951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.