You are here: newbie: logging in user and showing records « PHP SQL « IT news, forums, messages
newbie: logging in user and showing records

Posted by toedipper on 05/09/05 22:59

Hello,

Newbie alert, run for cover.

Apache, PHP and MY SQL

Imagine I have 2 tables, users and cars. The users table basically lists
people who own cara and the cars table is the cars that are owned by the
people.

The users table has the following standard info

userid
username
password

The cars table has the following

carid,
ownerid - this is the userid of the table users
reg_plate_number,
make,
model,
blah,
blah,

What I want to be able to do is say have a user login on at a simple page
with a text box for username/password, maybe called login.php - and assuming
they pass the logon test (exists and correct username/pw) they will be
redirected to a page that shows the cars that they own. So for example if
Tom logs in correctly he will get a list on screen of the car(s) that he
owns.

Any ideas?

Thanks,

td.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация