Maybe you should give these code to proper person who coded it in PHP in the first place look at these codes there the same from HobbaPHP (Me).
PHP Code:
<?php
$userq = mysql_query("SELECT * FROM user_stats WHERE id = '".$users->UserID($username)."'");
while($user = mysql_fetch_array($userq))
{
?>
<div class="UsersMotto">
<b>Time Online:</b> <?php echo intval(($user['OnlineTime'] / 3600)); ?> Hours <br />
<b>Pixels:</b> <?php echo $users->UserInfo($username, 'activity_points'); ?> <br />
<b>Respect:</b> <?php echo $user['RespectGiven']; ?> <br />
<b>Room Visits:</b> <?php echo $user['RoomVisits']; ?> <br />
<b>Gifts Given:</b> <?php echo $user['GiftsGiven']; ?> <br />
<b>Gifts Received:</b> <?php echo $user['GiftsReceived']; ?> <br />
<b>Achievement Score:</b> <?php echo $user['AchievementScore']; ?> <br />
<?php
}
?>