Is it possible to log a specific query?
I have some matches in a game that quits unexpected. And the only way a match can quit is if an UPDATE query set the value of “matchStatus” to 2 in a row. Is it possible to log all the queries that do this? In that case, how do you do it?
e.g
$query = "UPDATE active_matches SET matchStatus = '2' WHERE match_id='$match_id'";
Thanks
An alternative solution, which is a little more complicated to implement, but may or may not be more suited to your needs, is to create a log table into which a trigger inserts entries upon the execution of such update queries: