$q = mysql_query("SELECT * FROM `users` WHERE `id` = '$id' LIMIT 1");
$ser = mysql_fetch_array($q);
if (intval($_GET['$id'])) {
$lvl=$ser['postforum'];
if ($lvl>=2000)
$lvl='10';
elseif ($lvl>=1000)
$lvl='9';
elseif ($lvl>=500)
$lvl='8';
elseif ($lvl>=300)
$lvl='7';
elseif ($lvl>=250)
$lvl='6';
elseif ($lvl>=200)
$lvl='5';
elseif ($lvl>=150)
$lvl='4';
elseif ($lvl>=100)
$lvl='3';
elseif ($lvl>=50)
$lvl='2';
elseif ($lvl>=0)
$lvl='1';
}
echo '(Ур.' . $lvl . ')';}Укороченный вариант