Thanks for the help.
something like "select max(jobnumber) as something from table" and then add one and use it for your insert.
Bad idea. Think of several concurrent transactions which get the same max(jobnumber) and then try to do several inserts.
PostgreSQL has sequences for that purpose, I'm sure MySQL provides something similar. Check the docs and newsgroups.
I was trying to imply more that there are options as opposed to saying this is your answer
I actually designed my first db-based app that way. It used DB2 running on NT and everything went well during testing.
Boy, was I puzzled when some seemingly random transactions started failing once the system got under load :)
<edit>sp</edit>