when you start a session, you start it with a variable... right?
for example i could name the variable "Bob" or "Joe" etc.
though when the sessions started, and i call that variable on another page after "Welcome:"
it'll say "Welcome Bob" ... or Joe.. etc.
well. on my site, users log in by entering their email and password.
[when they registered, they had to include their first name, last name, email, password, country, region, and age..]
so.. when they log in.. how do i start a session that takes their "first name".. not their email or anything.. just their first name that they entered, and use it as a variable.
per se:
how do i start a session with something in mySQL database.. something that they don't need to enter, it just calls it from where it's grabbing the email address and the password...
so that it'll say "Welcome: "users name""
i'm having bad problems with this and no one's been able to help me.. so please explain this to me as though i'm a 5 year old.. don't just straight out say "you have to do this"
because "doing this" doesn't quite work..
what exactly do i do, what type of coding with php.. and what does each of these codes do?
Thanks
Tags: