RE: [PHP] Tell me how I can...
| From: | Jay Blanchard | Date: | Thu, 15 Aug 2002 18:50:34 +0000 |
| Subject: | RE: [PHP] Tell me how I can... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112828@lists.php.net to get a copy of this message | ||
[snip]
How can I control the number of users?
I want to create a DB driven website where users create their own user
accounts. But with a limitation of the number of accounts, and when the
maximum is reached, no one can create a new account. I even want to limit
the lifetime of an account.
It may be explained in the mysql documentation, but I can't find it (and I'm
very much a newbie in this field).
[/snip]
Control it with your user account creation form and either a text file with
a number or a table containing number information.
In form
$max_users = 50;
//get info from data table or text file
if($current_number < $max_users){
//when this registration is done
$current_number++;
}
HTH!
Jay
***********************************************************
* Texas PHP Developers Conf Spring 2003 *
* T Bar M Resort & Conference Center *
* New Braunfels, Texas *
* San Antonio Area PHP Developers Group *
* Interested? Contact jay.blanchard@niicommunications.com *
***********************************************************