Ok im working on my browser game and im stopped by this problem. How to make a Javascript countdown that runs a php mysql script when it hits 0? what i mean is it shows like a number in the middle of the screen counting down from a like 10 or 20 seconds and when it hits 0 it will run a php mysql prompt changing a value in the mysql database then after its done it will redirect you to another page.