Re: Auto Incrementing in PHP
| From: | Bobby Patel | Date: | Sat, 18 Jan 2003 23:51:07 +0000 |
| Subject: | Re: Auto Incrementing in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132136@lists.php.net to get a copy of this message | ||
One quick note, if you DO NOT have access to a database, you could store
that incremented number to a file. And open and retrieve, and increment
every time you need. If you need to take this approach checkout php.net and
search for "fopen".
"Don Mc Nair" <don@mcn.ie> wrote in message
news:20030118204048.78225.qmail@pb1.pair.com...
> Hi
>
> Is there a way for a php page to automatically increment a number and
store
> it every time the page is loaded.
>
> I want to generate an invoice number that goes up 1 everytime the HTML
form
> is sent to it.
>
> Thanks
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.435 / Virus Database: 244 - Release Date: 01/01/2003
>
>