Re: Newbie question - is this possible

From: Date: Sat, 14 Sep 2002 18:45:28 +0000
Subject: Re: Newbie question - is this possible
Groups: php.general 
Request: Send a blank email to php-general+get-116394@lists.php.net to get a copy of this message
Yes, that is possible. You want to start a session when the user logs in and then register the user name in the session. When you want to access the user's details, you grab the user name from the session and query the database using that user name. Good luck, Chris
From: "Ray Healy \(Data Net Services\)" <ray@matrix-datanet.co.uk> To: <php-general@lists.php.net> Subject: [PHP] Newbie question - is this possible Date: Sat, 14 Sep 2002 19:13:16 +0100 Dear All Could someone advise whether this is possible to do using PHP & mySQL and if so could they point me in the right direction or web site. What I want to do is to set up a user/password database and then another database with the users information in it (have not decided what rows to have - say name , address, picked numbers, wins, losses). When a user comes to my site a login box will appear where they type there username & password. This is checked with the 1st database and if OK there details are displayed by getting them from the 2nd database. This way the user can only ever see their own data and no one else's. I can probably work out how to set the login check but cannot plan in my head how to then display that users details from the other database. I hope this makes sense. I have posted this in both groups as it is database related as well. Any comments much appreciated. Thanks Ray
_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com

« previous php.general (#116394) next »