RE: [PHP] Auto Incrementing in PHP

From: Date: Sat, 18 Jan 2003 22:59:44 +0000
Subject: RE: [PHP] Auto Incrementing in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132129@lists.php.net to get a copy of this message
> 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. I assume you're talking about incrementing for everyone that accesses your site. For that you need a database to keep track of the number for all users. You'd be replicating an "Application Variable" that other languages have. If you're talking about incrementing on a per user basis, i.e. each time a specific user goes to the form, increment their number, then use sessions to keep a count. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#132129) next »