use form?
or add a semaphore table.
your code should try to lock this table first before attempting an update query.
your code should be able to retry (3 times?) to lock this table.
if it just cannot lock, exit gracefully.
if you able to lock the table, update it quickly and release the lock afterward.
this will prevent simultaneous update to clash.