making "list" vars global
Posted: Thu May 16, 2002 3:18 pm
I am trying to make the list elements ($user_id, $user_username,) global so i can acccess them in the rest of my code further down in the page.
How do you take the elements of an array and make them global?
here is the code:$resultID = mysql_query("Select * from user_access", $linkID);
while (list ($user_id, $user_username, $user_password, $user_fname, $user_lname, $user_access, $user_email) = mysql_fetch_row($resultID))
{
}
How do you take the elements of an array and make them global?
here is the code:$resultID = mysql_query("Select * from user_access", $linkID);
while (list ($user_id, $user_username, $user_password, $user_fname, $user_lname, $user_access, $user_email) = mysql_fetch_row($resultID))
{
}