I'm making an application using PHP, and I wanted to build a really simple page where a sound is played if two values in a MySQL row are set to '1' (true).
For instance, if none or only one of the values is set to 1, the script does not play the sound.
However, as soon as the second value changes to 1, there should be a JS 'listener' which detects this and automatically plays the sound.
Is there any way to achieve this?