sandbudd Posted July 17, 2009 Share Posted July 17, 2009 thanks for the help on the last post how do I have this go to a its own page? code works fine <?php $maxcol = 6; $count = 0; echo "<table width=100%>"; $result = mysql_query("SELECT * FROM washington"); while($row=mysql_fetch_assoc($result)){ if ($count % $maxcol == 0) echo "<tr>"; echo "<td>"; echo "<a href=../forum/".$row['link'].">".$row['city']."</a><br />\n"; echo "</td>"; $count++; if ($count % $maxcol == 0) echo "</tr>"; } echo "</table>"; ?> Quote Link to comment Share on other sites More sharing options...
sandbudd Posted July 17, 2009 Author Share Posted July 17, 2009 I mean displays fine Quote Link to comment Share on other sites More sharing options...
Andy-H Posted July 17, 2009 Share Posted July 17, 2009 thanks for the help on the last post how do I have this go to a its own page? code works fine <?php $maxcol = 6; $count = 0; echo "<table width=100%>"; $result = mysql_query("SELECT * FROM washington"); while($row=mysql_fetch_assoc($result)){ if ($count % $maxcol == 0) echo "<tr>"; echo "<td>"; echo "<a href=\"../forum/".$row['link']."\" target=\"_BLANK\">".$row['city']."</a><br />\n"; echo "</td>"; $count++; if ($count % $maxcol == 0) echo "</tr>"; } echo "</table>"; ?> Quote Link to comment Share on other sites More sharing options...
sandbudd Posted July 17, 2009 Author Share Posted July 17, 2009 perfect thanks 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.