Once a user logs in I create a global array variable to store all their info using the below.
The problem is when I use the below on another php page the variable is empty. I must be doing something that is simply to correct but I can't find itPHP Code:$UserDetails = mysql_fetch_row($sSQL);
$GLOBALS['UserDetails'] = $UserDetails;
echo "Hello $UserDetails[0]"; //This displays the users name
PHP Code:global $UserDetails;
echo "Welcome $UserDetails[0]...."; //All that is displayed is Welcome ....



Reply With Quote
