Click to See Complete Forum and Search --> : getting user info


zuzupus
06-23-2003, 04:53 AM
Hi,

i got one problem when user gives his name and pwd and clicks on submit button he will get his data not others same like mails we get only our when login
for ex--say user peter and morris peter will get his details when login he cant see morris details how i can get by using pHP stuffs
and i also want when user clicks on submit he will get his details some thing showing like Hi Peter or welcome and then below his details exactly like this forum things when i enter my user and owd i m getting my stuffs.

if anybody send me some live examples with PHP script will really be appreicable.

thanks

pyro
06-23-2003, 07:01 AM
I don't have any examples, but if you tell me more, I can try to help. Is the username/password being pulled from a database?

zuzupus
06-23-2003, 07:15 AM
Thanks...exactly user name and pwd pulled from database and when user enters on submit button he will get one form
let say user has to fill how much hour he spend on particular topic let say name of form is log.php and this form have all fields regarding time and projekt
now when user say peter came on next day he will see only his details not other user details,
but now problem is everydetails peter fill in is mix up with all users details so its very hard for peter to see yesterday what things he filled as list is long coz users are five.

how to deal with the session kind of things no idea how to use

thanks in advance

pyro
06-23-2003, 07:19 AM
I would just add more columns to your database, and add the information in there. Then, you will just have to do something like this:

"SELECT timeonpage FROM tablename WHERE username='peter'";