Blasteh
Lord Farquaad
Hello DB,
So I'm using Plus Emulator, with it's original database from Sledmore.
I have a topstats page, the only problem is, 'respects' are in a different table than the 'users' table, and if I change it, I cannot get the users look.
Here's the image:
As you can see, it grabs the look, username and supposed to be grabbing 'respect' from the users table, but there is no such thing as it's in the 'user_stats' table.
Is there anyway I can fetch from both tables without losing the players look and username?
Here's the code:
So I'm using Plus Emulator, with it's original database from Sledmore.
I have a topstats page, the only problem is, 'respects' are in a different table than the 'users' table, and if I change it, I cannot get the users look.
Here's the image:
You must be registered for see images attach
As you can see, it grabs the look, username and supposed to be grabbing 'respect' from the users table, but there is no such thing as it's in the 'user_stats' table.
Is there anyway I can fetch from both tables without losing the players look and username?
Here's the code:
Code:
<?php
$getCredits = mysql_query("SELECT `look`,`username`,`respect` FROM `users` WHERE `rank` <= '10' ORDER BY `respect` DESC LIMIT 5");
while($creditsStats = mysql_fetch_array($getCredits)) {
echo '
<tr>
<td width="25%"><div id="habbo-plate"><img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=' . $creditsStats['look'] . '&head_direction=3&action=crr=9&gesture=sml&size=m.gif"></div>
<td width="75%"><a href="{url}/home/'.$creditsStats['username'].'"><b>'.$creditsStats['username'].'</b></a><br />'.$creditsStats['respect'].' Respects</td>
</tr>';
}
?>