Re: Tell me how I can...
| From: | �ystein H�land | Date: | Thu, 15 Aug 2002 19:05:04 +0000 |
| Subject: | Re: Tell me how I can... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112832@lists.php.net to get a copy of this message | ||
Thank you guys. I think I can solve one of my problems now. What about the
time limit?
"Gijs Herpers" <xanf1@lycos.nl> skrev i meddelandet
news:002e01c2448d$1a9d7740$85032ed5@arnhem.chello.nl...
> It is better to check how much entries you have in your database with
> mysql_num_rows in my opinion. It looks a lot easier thean whats described
> below.
>
> ----- Original Message -----
> From: "Jay Blanchard" <jay.blanchard@niicommunications.com>
> To: "'Øystein Håland'" <ha@ematte.se>
> Cc: <php-general@lists.php.net>
> Sent: Thursday, August 15, 2002 8:50 PM
> Subject: RE: [PHP] Tell me how I can...
>
>
> > [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;
> > file://get info from data table or text file
> > if($current_number < $max_users){
> > file://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 *
> > ***********************************************************
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
>