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> Quote Link to comment Share on other sites More sharing options...
jigsawsoul Posted April 23, 2010 Author Share Posted April 23, 2010 bump 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.