I have a MySQL database that is set up so that when a user selects a record that record is locked and doesn't show up in the main list. The list is generated by selection all records that have the right date, and the columns calling and called are set to 0. This is an internal call tracking page. I want to come up with a way to unlock that record if the browser is closed, but as far as I have found there is not a way to do it. I'm pretty sure that it is possible to do with PHP and javascript, but I don't have any idea where to begin. the locking process is easy, but I want the record to unlock even if the page is unloaded, or the browser crashes. Is there a way to do this?