Ashoar Posted April 9, 2009 Share Posted April 9, 2009 Is it possible to refresh a database query ever x amount of seconds? For example i have this query here but i would like it to refresh and query the database again ever 60 seconds or so. $Members = mysql_query("SELECT username FROM online") or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/153290-solved-refresh-query/ Share on other sites More sharing options...
ratcateme Posted April 9, 2009 Share Posted April 9, 2009 i think you would need the page to refresh javascript can be usefully for that also if you don't want the whole page to refresh you could use ajax to do it Scott. Quote Link to comment https://forums.phpfreaks.com/topic/153290-solved-refresh-query/#findComment-805332 Share on other sites More sharing options...
Ashoar Posted April 9, 2009 Author Share Posted April 9, 2009 Thank you Scott. I just realized another method of doing what i was attempting to do just before you replied. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/153290-solved-refresh-query/#findComment-805334 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.