View Single Post
Old 06-06-2005   #4 (permalink)
ParaSnake
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
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
__________________
ParaSnake is offline