I have implemented PHP Sessions successfully on my login page. Now, I would like to have a user control panel(members only page) were user specific info from the database would be displayed, based on the active USER specific session.
On the login page session variable is:
login is also a column fire in the database.
Here is a simplified version of the panel(members only page)
The page is not showing the user specific info only:
First Name:
Last Name:
Email Address:
Login:
Any suggestions?
The Journey of a Thousand Miles Begins with the First Step...
On the login page session variable is:
Code:
$HTTP_SESSION_VARS ['valid_user'] = $login;
?>
login is also a column fire in the database.
Here is a simplified version of the panel(members only page)
Code:
<?
session_start();
$db = mysql_connect ( 'localhost', 'FAKE_LOGIN', 'FAKE_PASSWORD' );
mysql_select_db ( 'realest1_proppost', $db);
$result = mysql_query("SELECT * FROM customerindex WHERE login='$login'",$db);
$myrow = mysql_fetch_array($result);
echo "First Name: ".$myrow["cfirstname"];
echo "<br />";
echo "Last Name: ".$myrow["clastname"];
echo "<br />";
echo "Email Address: ".$myrow["cemail"];
echo "<br />";
echo "Login: ".$myrow["login"];
?>
The page is not showing the user specific info only:
First Name:
Last Name:
Email Address:
Login:
Any suggestions?
The Journey of a Thousand Miles Begins with the First Step...