Re: [PHP] php mysql live feed



admin@xxxxxxxxxxxxxxxxxxx wrote:
Okay before i pull more hair out...

I am trying to use php to pull mysql data and refresh the mysql data
every say 5 seconds for like a live display of the database without
the screen reloading.

I want the data to refresh but not the screen. Ajax seems to hate me
because everything i have seen/read/tried is wrapped around ASP.NET
or requires a user interaction to invoke the query.

If you have example scripts or a good tutorial that actually works
where you can open a php script and the data changes on the page as
the database does and the screen does not refresh, and you don’t have
to onclick, onfocus, or onblur kind of thing. I would be in your debt

You can use setTimeout() to delay a call to a Jabbascript function. Remember that the second argument is milliseconds, and not seconds. Eg.

setTimeout('alert("Hello")', 1000);

--
Richard Heyes

In Cambridge? Employ me
http://www.phpguru.org/cv

+----------------------------------------+
| Access SSH with a Windows mapped drive |
| http://www.phpguru.org/sftpdrive |
+----------------------------------------+
.



Relevant Pages

  • RE: [PHP] php mysql live feed
    ... You would want to add a script somewhere that would begin the interval in order to update the div: ... [PHP] php mysql live feed ... I am trying to use php to pull mysql data and refresh the mysql data ... I want the data to refresh but not the screen. ...
    (php.general)
  • RE: [PHP] php mysql live feed
    ... I now have successfully created a live Pika Card status GUI using PHP, MYSQL, AJAX. ... I am trying to use php to pull mysql data and refresh the mysql data ... I want the data to refresh but not the screen. ...
    (php.general)
  • Re: [PHP] php mysql live feed
    ... I am trying to use php to pull mysql data and refresh the mysql data every say 5 seconds for like a live display of the database without the screen reloading. ... If you have example scripts or a good tutorial that actually works where you can open a php script and the data changes on the page as the database does and the screen does not refresh, and you don’t have to onclick, onfocus, or onblur kind of thing. ...
    (php.general)
  • php mysql live feed
    ... I am trying to use php to pull mysql data and refresh the mysql data every say 5 seconds for like a live display of the database without the screen reloading. ...
    (php.general)
  • Re: refresh on submit
    ... it's a php script that display data from ... > need to manually refresh to see the result of my insertion. ... the global registered values (it's off in later PHP versions). ...
    (php.general)