Welcome Guest, Not a member yet? Register   Sign In
ID incrementing for multiple users - please help
#1

[eluser]phester[/eluser]
I'm trying to create an invoicing application (similar to many out there) that would users to issue invoices to their customers.

This is what I'd like to have:
Each user signs up for an account. And can start to issue invoices. Invoice IDs should start at 1000 and auto increment sequentially for each of their invoices from there.

My dilemma however, is how can I have each user start at 1000 and have these IDs sequential for all THEIR invoices only? The only way I can think that is to have separate databases for each user, but I dont like this idea! I'm sure there's a better way out there.

Another way to do it is to have an ID integer field and manually increment it so that the IDs for their clients are sequential.

Any help is greatly appreciated. I hope you get what im describing.


Messages In This Thread
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 12:58 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 01:17 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 01:47 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 01:57 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 03:25 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 03:39 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 04:10 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 11:09 AM
ID incrementing for multiple users - please help - by El Forum - 12-09-2007, 06:46 PM
ID incrementing for multiple users - please help - by El Forum - 12-09-2007, 06:58 PM
ID incrementing for multiple users - please help - by El Forum - 12-09-2007, 07:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB