
Hi, In my project order purchase system under addorder form i want to produce a random number for every order made which is refrence number for dat order and is primary key and this number will be generated automatically.But i want this number to be displayed when user click on the submit button as a "alert message" and this refrence number act as primary key in the database for dat paricular order made.And as soon the refrence number is generated it should be inserted into database along with the details of addform when add_form is submitted.
Please provide me the desired code.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.