var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: log in page, show username etc
I have now created a log in page which is working very well, can someone please help me as I have been stuck for 3 days now, after someone has logged in I want to have this info displayed:
Welcome member '(username)'
Your password is '(password)'
I am using php, mysql and dreamweaver 8.
if you need a snippet of code please guide me what it is you need as I am a real beginner.
Super simple version would be something like this:
(p.s. I got your pm earlier today and didn't reply because I saw that you had the login working.)
//user is already logged in, so you must have access to a userid?
$sql = "SELECT * FROM users WHERE userid=$userid";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
echo "Your username is: $row['username']";
echo "Your password is: $row['password']";
Thanks for the help, I will try this tomorrow and let you know how I got on, if I start it know I will be on this pc all night as well, I will be a single man soon!!
Save the information in session variables. You can then access the information anytime you want.