Jump to content

[SOLVED] doy you know why this would happen?


Xyphon

Recommended Posts

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.

<?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');
?>

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.