Re: automatic page view

From: Date: Wed, 20 Jun 2001 05:34:40 +0000
Subject: Re: automatic page view
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54454@lists.php.net to get a copy of this message
I would set your database up like so. tablecompany id company otherstuff tableusernamepass compid username password 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 1 Company 1 All the other stuff 2 Company 2 A Different company tableusernamepass 1 Username Password 2 Username Password // A user for company 2 2 AnotherUser Password // A user for company 2 2 AnotherUser Password // A user for company 2 That should give you an idea. Hope this helps. Regards, Ray

« previous php.general (#54454) next »