RE: [PHP-WIN] Unique id Number

From: Date: Mon, 14 Jan 2002 15:48:57 +0000
Subject: RE: [PHP-WIN] Unique id Number
Groups: php.windows 
Request: Send a blank email to php-windows+get-11425@lists.php.net to get a copy of this message
You can, but there are a number of issues to deal with. One of the potential solutions is to grab the MAX value from the table id field and then increment that number for the next inserted record. The problem arises though when you have multiple users attempting to add records... --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Nullum magnum ingenium sine mixtura dementiae fuit > -----Original Message----- > From: James Mansfield [mailto:james@eleventen.com] > Sent: Monday, January 14, 2002 10:48 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] Unique id Number > > > OK...newbie question it must be: > I want to add an entry into a db tb (using php obviously) and > when its added > into the db its gets a sequencially numberred id....now can I > retrieve this > id numbe rin the same php coded page as what I create the > entry with? If not > what is the best way around it? Create a unique number for > the entry before > adding it into db?? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#11425) next »