refresh data from msyql every 6 seconds

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
dsick
Forum Commoner
Posts: 57
Joined: Fri Mar 27, 2009 3:34 pm

refresh data from msyql every 6 seconds

Post by dsick »

im creating a log for my site, information from the log will be refreshed every 6 seconds.. the current method im using is a meta refresh.. that refreshes the page every 6 seconds... however this refreshes the whole page.. the only thing im wanting to refresh is the data from mysql..

if(isset($_GET['logs'])) {

echo'<meta http-equiv="refresh" content="5"/>';

?>

i show my data here, the meta refreshes every 6 seconds which i think looks bad because the page its self will refresh every 6 seconds, not to mention that the link keeps flashing in the status bar and on the tabs every 6 seconds... looks very annoying.

this could work if i couldn't see the link in the status bar and tab everytime it refreshes..ill only have the refresh on the view side of things... because i dont want to interupt my self from doing anything...

if you need better explanation i will use camtasia to explain what im trying to do
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: refresh data from msyql every 6 seconds

Post by califdon »

You have described exactly what Ajax does. Asynchronous Javascript And XML. Read up on it.
dsick
Forum Commoner
Posts: 57
Joined: Fri Mar 27, 2009 3:34 pm

Re: refresh data from msyql every 6 seconds

Post by dsick »

yea im searching google and found a few javascript and ajax methods

sory
Post Reply