richclever
IS-IT--Management
Hi,
I have a script that integrates a set of data from one database with another ro display real estate listings. The database uses an autoincrement ID field to store the listings.
At the moment, my integration script sets the ID number a lot higher that the last record so as to not intefere with the existing data in the database. Obviously when other users enter a property manually the autoincrement will continue from my latest property ID and not fill the space between the previous last Id and my imported data.
Can anyone think of a workaround so that my data doesn't intefere with any previous listings; I think I need to use a function that gets the ID number from the last row and add records from there but just need someone to confirm my logic.
Many thanks
Richard
I have a script that integrates a set of data from one database with another ro display real estate listings. The database uses an autoincrement ID field to store the listings.
At the moment, my integration script sets the ID number a lot higher that the last record so as to not intefere with the existing data in the database. Obviously when other users enter a property manually the autoincrement will continue from my latest property ID and not fill the space between the previous last Id and my imported data.
Can anyone think of a workaround so that my data doesn't intefere with any previous listings; I think I need to use a function that gets the ID number from the last row and add records from there but just need someone to confirm my logic.
Many thanks
Richard