GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Jun-2003, 06:43
skyloon skyloon is offline
Junior Member
 
Join Date: Jun 2003
Posts: 53
skyloon is an unknown quantity at this point

auto number


How to generate auto number for php? For example, every time I submit the details to another page, the number will add from 10001 to 10002. Thank you.
  #2  
Old 30-Jun-2003, 09:33
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
The simplest idea I can think up right now is to store an integer in a text file / database and simply get the value and increment it by one everytime you need it?

Not forgetting that you'd need to update the new value in the file / db each time too...
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grand Theft Auto pcxgamer Computer Software Forum - Games 0 20-Dec-2003 17:26
How to find the last 6 digits of a 8 digit number? rjd72285 C++ Forum 3 28-Oct-2003 09:21
Displaying the Post Number BobbyDouglas Open Discussion Forum 4 10-Oct-2003 11:43
Beginning C++ math prog Dariklar C++ Forum 6 10-Sep-2003 12:51
[class] Auto add / strip slashes regardless of setting. JdS PHP Code Library 0 17-Jan-2003 02:35

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:41.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.