Help with Generating invoice number with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
afam4eva
Forum Newbie
Posts: 5
Joined: Tue Oct 27, 2009 12:54 pm

Help with Generating invoice number with PHP

Post by afam4eva »

Pls i need help with generating an invoice no for my website. Currently i made use of the sql function "create table order(invoice_no serial auto_increment)" to generate unique invoice numbers. But my problem is that the invoice number does not display on the page except i reload the browser.

Let me make it more lucid to you.

For example you cannot "insert into orders(invoice) values('')" and also "select * from orders" on the same page. So what options do i have left.
Post Reply