ack i was way off I believe....
so do something like I said with the level_id table othewise you will have to hard code your values in each page dealing with them
and your query would be like
SELECT u.user_id as uid, u.level_id as ulevel_id, l.level_id as lid, l.level_name as lname, l.level_mark as lmark, sum(count(u.user_id)*l.level_mark) as total FROM usertable AS u, leveltable AS l WHERE u.level_id = l.level_id GROUP BY l.level_name
if I am thinking right....
this would give you values like
$row['uid] = 1
$row['ulever_id] = 1
$row['lid'] = 1
$row['lmark'] = 22
$row['lname'] = "Basic"
$row['total'] = 110 (because I'm randomly picking we have 5 basic members)
again I could be wrong... and making that a lot harder than it seems... maybe laser can correct me?