16,018,637 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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(); "
Member 10421693
24-Nov-13 10:09am
View
I'm sorry this is gonna sound silly but...what would that part of the code look like exactly?
Member 10421693
24-Nov-13 9:34am
View
But the database is filled properly and has the fname and lname etc. filled
Member 10421693
24-Nov-13 9:13am
View
It said
array(3) { ["id"]=> string(1) "1" ["username"]=> string(5) "Admin" ["email"]=> string(18) "admin@example.com" } ?
Show More