Hey , I have an order form on my website.
But I need it to appoint an ordernumber to the client.
So that in further communications we can use that ordernumber to know what we're talking about.
How do i write a program to appoint an ordernumber to a client? and to appoint a DIFFERENT number (of 1 more than the last) to the next client?
thank you
ordernumber
Moderator: General Moderators
Do you use a Database?
All databases can create sequential number fields automatically.
All databases can create sequential number fields automatically.
Code: Select all
CREATE TABLE `test` (
`ordernumber` INT NOT NULL AUTO_INCREMENT ,
INDEX ( `ordernumber` )
)-
ben_albrechts
- Forum Commoner
- Posts: 33
- Joined: Wed Oct 26, 2005 3:33 am
-
ben_albrechts
- Forum Commoner
- Posts: 33
- Joined: Wed Oct 26, 2005 3:33 am