getting the next record number can be problematic and unreliable. it can be done using an SQL command:
SHOW TABLE STATUS LIKE 'yourTableName'
One of the columns returned will be named "Auto_Increment" this will contain the next index
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.