Can someone get me started on how I can allow users to login connected from a database... and once logged in, I can pull their user data with a simple sql query.... like all of their information in their table.... though sessions would be easier. Where can I learn how to setup a mysql php login and then use sessions/cookies?
thanks.
php sessions+mysql help please.
Moderator: General Moderators
php sessions+mysql help please.
Last edited by syntax24 on Wed Jun 04, 2008 11:38 am, edited 1 time in total.
Re: php how to?
If you tried using a more descriptive title more people might open your thread and help you.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: php sessions+mysql help please.
There are so many ways that you can go about doing what you want to do. Essentially you are going to need to create sessions code that mimics the performance routines of the native PHP session handling. So that means you would need a session_start, session_end and then something in your code that would handle session updating of the critical pieces of the session data that you are tracking.
It is not hard to do, but will depend greatly on what you are after. This can be done in a lot of different ways.
It is not hard to do, but will depend greatly on what you are after. This can be done in a lot of different ways.