Thread: user login page
View Single Post
Old 01-22-2008, 02:26 AM   #2 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Whats the error your'e getting?


Update:
Assign the sessions to the $data variable when looping.

Like so:
PHP Code:
$_SESSION['username'] = $data['username'];
// then session register
session_register($_SESSION['username']); 
By the way, theres no session_start() at the very top,
that generates the session, then assigns the session to sql row, then you register the session to it and it should be there.

Uhh.. I don't know what else considering I'm half asleep here.

Also remember the mysql_real_escape_string function I told ye, also if you want to what I ment by generation. use session_start() then do print_r(session_id())
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote