title: calling a php function using ajax after interval of time
body: <p>hi i am working on a <code>codeigniter</code> project. I want to execute a php function after an interval of 10seconds. When a user visits that specific page after 10 seconds i want that <code>php</code> function to be executed. In that <code>php</code> function i have set a counter which adds 1 to the specific table into the <code>database</code>. I have tried using <code>AJAX</code> but didnt get the desired result. Kindly explain me with examples as i am new in <code>ajax</code>. Thanks in advance...</p>