When a user logs in I get all their details using the below code.
Each user has around 15/20 items that I want stored. Is there a way i can store the $check2 array() so I can simply use $check2[0], $check2[1] etc...in any other page/function i've got?
or will I have to use the code below each time I want to display something about the user?
PHP Code:function get_user_details() {
$query ="Select * from user_details WHERE user_name = '$uname'";
$check = mysql_query($query);
$check2 = mysql_fetch_row($check);
}




Reply With Quote