RE: [PHP] automatic page view

2001-06-20 Thread Jason Murray

 I am working on a  admin page where companies log in to there own company
 admin page. Can anyone help out with a script to have the username and
 password directly linked to there own company admin page.

That's a pretty vague and nebulous request - if you ask us something
specific,
we can probably help you.

Jason



Re: [PHP] automatic page view

2001-06-20 Thread Developer

I would set your database up like so.

tablecompany
idcompany otherstuff

tableusernamepass
compidusernamepassword

Make the ID in the tablecompany auto_increment then test the
tableusernamepass compid
against it when the user properly logs in. Exampe of the entries in the
database:

tablecompany
1Company 1All the other stuff
2Company 2A Different company

tableusernamepass
1Username   Password
2UsernamePassword// A user for company 2
2AnotherUserPassword// A user for company 2
2AnotherUserPassword// A user for company 2

That should give you an idea.

Hope this helps.

Regards,
Ray




RE: [PHP] automatic page view

2001-06-20 Thread Maxim Maletsky

one table:

id  usernamepassword

Then, when login was successful determine his company by the ID returned.
Redirect.

Cheers,
Maxim Maletsky


-Original Message-
From: Taline Makssabo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 12:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] automatic page view


Hello all!

I am working on a  admin page where companies log in to there own company
admin page. Can anyone help out with a script to have the username and
password directly linked to there own company admin page.