Re: Limit
| From: | Matt Kaufman | Date: | Mon, 30 Jul 2001 21:15:48 +0000 |
| Subject: | Re: Limit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60251@lists.php.net to get a copy of this message | ||
I would just query the database to see how many records are currently listed
(using COUNT) and use an if statement to see if it's over or under the
limit. If it's over you can just print out a message saying that no more
entries can be added.
Matt Kaufman
----- Original Message -----
From: "Jeremy Morano" <jeremy@prepresshelp.com>
To: <php-general@lists.php.net>
Sent: Monday, July 30, 2001 11:23 AM
Subject: [PHP] Limit
> How do I put a limit of records that can be entered in a table?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>