Possible Duplicate:
Going from database to sessions
A user enters information, which I stored in the variable $email.
I need to find out this users first and last name every time they log in. It’s stored in the table Persons, but I need it to be stored into a variable.
For example, someone logged in using the e-mail Example@example.com. I need to find out their firstname and lastname that they signed up with.
Don’t say to type in the email manually, because I need it to be automatic when a user logs in
Insufficient info, I’m afraid. If you, for example, store firstnames in ‘firstname’ column, lastnames in ‘lastname’, and email in, most creatively, ’email’ the query will look like:
But it’s really just a beginning of the solution. )