I'm new to php. I want to execute mysql query periodically (say every 5 seconds) using script. Query can be anything (as for now such as getting all data one by one from databse or inserting data to database). How can I do this? I've been through some examples but as I'm new to php, I'm not getting.