if(!defined("IN_SITE")){
print "Pls stop haxing";
exit;
}
$me = $_GET["page"];
$linktome = buildlinkback($me);
if(!$loggedin){
print "Hey! Have you shown your information to the customs office? You might want to try that first.";
} else {
$GetItemsQuery = mysql_query("SELECT * from `characters` where user_id='$sess_user_id'") or print(mysql_error() . " " . __FILE__ . " #" . __LINE__);
if(mysql_num_rows($GetItemsQuery) < 1){
print "Sorry! It seems you have no items!";
} else {
?>
Hello =$CharacterInfo["name"];?>, Welcome to your inventory!!
while($ItemInfo = mysql_fetch_array($GetItemsQuery)){
$ItemType = $ItemInfo["item_type"];
$ItemID = $ItemInfo["item_id"];
$GetInfoRow = mysql_query("SELECT * from `$ItemType` WHERE {$ItemType}_id='$ItemID'") or die(mysql_error() . " " . __FILE__ . " #" . __LINE__);
$InfoRow = mysql_fetch_array($GetInfoRow);
for($i=1;$i<=$ItemInfo["owned"];$i++){
if($i % 6 == 0){
print "
\n";
print "\n";
}
$Url = $InfoRow["img_thumb"];
$Name = $InfoRow["name"];
$Cost = $InfoRow["cost"];
?>
 =$Name;?> |
|
}
}
?>
}
}
?>