$id = $HTTP_SESSION_VARS['valid_user'];
$all_data = mysql_query("Select * from sv_colleges as c, sv_users as u where c.college_id=u.user_school && u.user_id='$id'") or die ("Mysql error: " . mysql_error());
$result = mysql_fetch_array($all_data);
I then echo the values like so.
<?PHP echo $result['user_name']; ?>
That is a SQL statment that I use to retrieve data from 2 MySQL Table. It works fine the first time, but if I refresh the page all the values that where appearing disapear. Is this a seesion problem or what? I have not idea what is causing it. I use sessions and the values in the SESSIONS_VARS still appear but everything form the sql_query above disappears. The only way to make the values reappear is to dump the tables. Please help. I am so lost.