The software and DB were both built by someone else and the software is huge. I know some scripts use the the auto incr field and the stuff I am working on now uses the field titled site_id.
So you say i should just execute:
SELECT MAX(site_id) FROM tablename
in my PHP code?