Click here to Skip to main content
16,018,637 members

Comments by Member 10421693 (Top 8 by date)

Member 10421693 10-Dec-13 16:52pm View    
Dammit i knew i did something wrong -.- i meant to reply to thanh_bkhn...
Member 10421693 10-Dec-13 16:18pm View    
Deleted
Ugggggggghhhhhhh, okay so i tried this

And that didn't work either...last_login remains NULL
Member 10421693 24-Nov-13 12:34pm View    
YYYYESSS! It's working now! I was only selecting username, email, and id from the table -.- changed it to * and now it all works
Member 10421693 24-Nov-13 11:28am View    
Aha thanks for the help i really appreciate it. Okay so...fname and lname is all working now (I put this in the login page -
$_SESSION['dbUser']['fname']=$fname;
$_SESSION['dbUser']['lname']=$lname;
$_SESSION['dbUser']['rank']=$rank;
)
But now rank isn't working...the dump session says :
array(6) { ["id"]=> string(1) "1" ["username"]=> string(5) "Admin" ["email"]=> string(18) "admin@example.com" ["fname"]=> string(5) "Mason" ["lname"]=> string(3) "Day" ["rank"]=> NULL }
Member 10421693 24-Nov-13 10:49am View    
Oh God im getting so confused now :P i think i've found where the session is made but it says " $_SESSION['dbUser'] = $row; "
and the row thing is " $row = $stmt->fetch(); "