PDA

View Full Version : Help with creating a table.



lameguy
11-11-2007, 10:06 PM
Alright, here is how it looks now:

www.habboprices.net

And here is what I want it to look like:

http://www.seriosuploader.com/thumbs/small/252_ximxk/after_hp.jpg (http://www.seriosuploader.com/view/full/252_ximxk)

I think this is what has to be edited to arrange like the table above. Except I have no idea how to do it. If someone could help out it would be greatly appreciated.


function displayRares($type, $limit) {
$raresQuery = mysql_query("SELECT * FROM `rares` WHERE type='$type' LIMIT $limit");
echo "<table border='0'>";
while ($rows = mysql_fetch_array($raresQuery)) {
echo "<tr>";
echo "<td>";
if (!empty($rows['url'])) { echo("<img src=\"" . $rows['url'] . "\" alt=\"" . $rows['name'] . "\" />"); }
echo "</td><td>";
if (!empty($rows['name'])) { echo($rows['name']); }
echo "</td>";
if (!empty($rows['t'])) { echo("<td>" . $rows['t'] . "T</td>"); }
if (!empty($rows['hc'])) { echo("<td>" . $rows['hc'] . "HC</td>"); }
if (!empty($rows['rd'])) { echo("<td>" . $rows['rd'] . "RD</td>"); }
echo "</tr>";
}
echo '</table>';
}
?>


It's from functions.inc.php of the Project Rare Value FREE script I found on this forum.

Want to hide these adverts? Register an account for free!