There is this function which i want to execute in case the user leaves a particular page. This function will basically change all of the data within a certain column in my d
You can't do this in php but you could use the javascript function onbeforeunload, here an example