jigsawsoul Posted April 23, 2010 Share Posted April 23, 2010 How can i get the while loop to display six rows then create a new column and six etc and so on... i can't seem to get this to work any help would be great? $result = "SELECT * FROM uses"; $result = mysql_query ($result) or die (mysql_error()); while($row = mysql_fetch_assoc($result)) { $js .= ''.$row['js'].''; $table .= ' <td> <a id="'.$row['id'].'" href="#" title="'.$row['uses'].'">Usage</a> </td> '; } <table id='gravity' cellspacing='5'> <tr> <?php echo $table ?> </tr> </table> Link to comment https://forums.phpfreaks.com/topic/199487-while-loop-6-rows-then-start-new-column/ Share on other sites More sharing options...
jigsawsoul Posted April 23, 2010 Author Share Posted April 23, 2010 bump Link to comment https://forums.phpfreaks.com/topic/199487-while-loop-6-rows-then-start-new-column/#findComment-1046997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.