Xyphon Posted December 25, 2007 Share Posted December 25, 2007 Go to ptcrpg.awardspace.com/ranks.php and go to the bottom. Do you know what would cause that? It happens to every last pokemon on list, even if I delete some. Heres the code <?PHP include('Connect.php'); include('top.php'); $result = mysql_query("SELECT * FROM pokemon_info ORDER BY pokemon_level DESC"); while($row = mysql_fetch_array($result)){ echo "<table border='1' height='20' bgcolor='lightgrey'>"; echo "<br />"; echo "<tr>"; echo "<td><b>Level: </b><br /></td><td><b>Icon: </b></td></tr>"; echo "<tr><td><a href='viewprofiles.php?id=" . $row['user_id'] . "'>" . $row['pokemon_level'] . "</center></td><center><td><a href='viewprofiles.php?id=" . $row['user_id'] . "'><img border='0' src='" . $row['pokemon_icon'] . "</td></tr>"; echo "</table>"; } include('bottom.php'); ?> Please help. Link to comment https://forums.phpfreaks.com/topic/83172-solved-doy-you-know-why-this-would-happen/ Share on other sites More sharing options...
Northern Flame Posted December 25, 2007 Share Posted December 25, 2007 <?php include('Connect.php'); include('top.php'); $result = mysql_query("SELECT * FROM pokemon_info ORDER BY pokemon_level DESC"); while($row = mysql_fetch_array($result)){ echo "<table border='1' height='20' bgcolor='lightgrey'>"; echo "<br />"; echo "<tr>"; echo "<td><b>Level: </b><br /></td><td><b>Icon: </b></td></tr>"; echo "<tr><td><a href='viewprofiles.php?id=" . $row['user_id'] . "'>" . $row['pokemon_level'] . "</center></td><center><td><a href='viewprofiles.php?id=" . $row['user_id'] . "'><img border='0' src='" . $row['pokemon_icon'] . "'></td></tr>"."\n"; echo "</table>"; } include('bottom.php'); ?> Link to comment https://forums.phpfreaks.com/topic/83172-solved-doy-you-know-why-this-would-happen/#findComment-423063 Share on other sites More sharing options...
teng84 Posted December 25, 2007 Share Posted December 25, 2007 you dont properly encode your html see this line i found in your page <img border='0' src='http://i13.tinypic.com/6l2w8l2.png</td></tr></table><br> maybe change it to <img border='0' src='http://i13.tinypic.com/6l2w8l2.png'</td></tr></table><br> or check if you have close every tags.. its hard to read the page source you don't align/ format them well Link to comment https://forums.phpfreaks.com/topic/83172-solved-doy-you-know-why-this-would-happen/#findComment-423066 Share on other sites More sharing options...
revraz Posted December 25, 2007 Share Posted December 25, 2007 You're not closing your <a tags Link to comment https://forums.phpfreaks.com/topic/83172-solved-doy-you-know-why-this-would-happen/#findComment-423068 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.