Ur nice pic says it all

so what u want is to do a mini function that will show the user`s race each time he/she logged in,rite?
PHP Code:
//assume that X has logged in and his username is store in $logged_username
//user is a table that store ur user`s informations
$a=mysql_query("SELECT * FROM user WHERE username='".$logged_username."' ")or die("problem with db");
//fetch the $a
$user_info=mysql_fetch_assoc($a);
//give the $race the user`s race value
$race=$user_info["race"];
//output it
echo $race;
That is what u have to to,thx God that i still remember PHP`s structure,i almost forgot it :P