Here's my deal.... And i haven't really even gotten started... so it's easy to change my game plan.
Using PHP and MySQL...
I want to have a form where people can fill it out when they need help... kind of like a support ticket system.
They fill out a support request... it saves it in a database... I reply to it and it saves it in the database. and so on...
I started by making a column for the THREAD.... and then one for each TICKET entry under that thread number.
The first person uses the support ticket system... it gives the thread the number 555 (let's pretend that's where we start it )
Another person starts a completely different thread... it's given the number 556.... this is simple auto increment.
Well..... the way the actual support ticket number would look is:
555-001
555-002 .. for each ticket in the thread.
the second thread would be:
556-001
556-002
The first number (before the dash) is the auto incremented THREAD column...
But how can i get the second number ( TICKET ) to auto increment when people reply to each thread.
I thought that this would/could happen on the REPLY page.
SO... remember that I have two columns that need to be incremented at different times... a THREAD column... and TICKET column.
How can I get PHP to look at the MySQL database and see where the last TICKET number is within the current THREAD... and add one number and give that as the new TICKET number?