include('config.php');
$f = '';
function show_items_up($us, $type) {
$r .= '';
$level = $type-1;
$items = array();
if($type < 8 && $type > 13) {
$r = '
Error code #1 |
';
} elseif($type >=8 && $type <= 13) {
$sp = mysql_query('SELECT `id`, `name`, `nlevel` FROM `inventory` WHERE `owner` = "'.$us.'" AND (`prototype` >= 143 AND `prototype` <= 153) AND `point` > 0 AND `nlevel` = "'.$level.'" AND `dressed` = 0 ORDER BY `id` DESC');
if(mysql_num_rows($sp) > 0) {
$r .= '