php sessions+mysql help please.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
syntax24
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2008 3:25 pm

php sessions+mysql help please.

Post by syntax24 »

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.
Last edited by syntax24 on Wed Jun 04, 2008 11:38 am, edited 1 time in total.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: php how to?

Post by panic! »

If you tried using a more descriptive title more people might open your thread and help you.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: php sessions+mysql help please.

Post by RobertGonzalez »

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.
Post Reply