Insert Record is replacing instead of adding
I have a simple page that is supposed to upload a photo and then add a record to the database with the file name and unique ID. The upload works great, but the insert record behavior sometimes will add a record and sometimes replace the last record, (nothing happens to the file though).
Thanks in advance!
I've attached the file...