What table is your admin level in? a different table? In that case you will have to do a SQL join.
Now, it's hard for someone to give you advice on your query, when you haven't posted your table structures.
but, lets assume you have normal looking user and admin table:
user{
iID
iAdminLevelID
sName
sFullName
sPassword
...etc
}
adminlevel{
iID
sName
...etc
}
so if you want to find out the fullname and Admin level (and assuming up to this point you have authenticated them and that the user name is a unique field in the user table)
then just do a simple query with a join like so:
$sSQL = "select U.sFullName, A.sName from Users U, AdminLevel A where U.sName = '" . $HTTP_SESSION_VARS["Username"] . "' and A.iID = U.iAdminLevel";
$result = mysql_query($sSQL);
etc..
hmm. but it's really going to depend on your table structure. If you don't know how to do simple joins like that, then do some reading on SQL syntax. Stuff like that's not really too hard.
hope that helps,
-Adam 🙂