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>"; ?> Link to comment https://forums.phpfreaks.com/topic/166293-solved-_blank/ Share on other sites More sharing options...
sandbudd Posted July 17, 2009 Author Share Posted July 17, 2009 I mean displays fine Link to comment https://forums.phpfreaks.com/topic/166293-solved-_blank/#findComment-876933 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>"; ?> Link to comment https://forums.phpfreaks.com/topic/166293-solved-_blank/#findComment-876935 Share on other sites More sharing options...
sandbudd Posted July 17, 2009 Author Share Posted July 17, 2009 perfect thanks Link to comment https://forums.phpfreaks.com/topic/166293-solved-_blank/#findComment-876936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.