Thread: My Login Script
View Single Post
Old 10-05-2012, 11:32 AM   PM User | #20
Feerick11
New Coder

 
Join Date: Sep 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Feerick11 is an unknown quantity at this point
Let me see if I understand what you mean. In the past I would have just put the following in my header file.

$stat = mysql_fetch_array(mysql_query("select * from members where user='$user' and pass='$pass'"));

The session would of kept that alive and then when I wanted to show someones user name I would of just put $stat[user]. But now I have to use session variables. Is that correct?
Feerick11 is offline   Reply With Quote