I have a large table into which data is inserted when a user puts in a request via my form.
I want to assign each user a unique ID when they click submit and their data is put into the database. Until now I have been using 'auto increment' and LAST_INSERT_ID but it's not really what I want.
What I want to do is query the database for the last number in the ID field. I then want to assign the ID "RQSTLASTENTRY+1" for each entry so they will show as RQST0001, RQST0002 etc...
Does that make sense? How can I achieve this?