Page 1 of 1

ordernumber

Posted: Tue Nov 22, 2005 7:41 am
by ben_albrechts
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

Posted: Tue Nov 22, 2005 8:24 am
by Grim...
Do you use a Database?

All databases can create sequential number fields automatically.

Code: Select all

CREATE TABLE `test` (
`ordernumber` INT NOT NULL AUTO_INCREMENT ,
INDEX ( `ordernumber` )
)

Posted: Wed Nov 23, 2005 5:46 am
by ben_albrechts
I dont use a database yet, i'm new to this whole thing

Posted: Wed Nov 23, 2005 6:29 am
by Grim...
What do you use? Text files or just sessions?

Posted: Wed Nov 23, 2005 8:54 am
by ben_albrechts
I have a code on my site for the form and the outcome of the form is than emailed to me