php mysql live feed

This is a discussion on php mysql live feed within the PHP General forums, part of the PHP Programming Forums category; Okay before i pull more hair out... I am trying to use php to pull mysql data and refresh the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-20-2008
admin@buskirkgraphics.com
 
Posts: n/a
Default php mysql live feed

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 auser 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

Frustrated Rick
Reply With Quote
  #2 (permalink)  
Old 05-20-2008
Kyle Browning
 
Posts: n/a
Default Re: [PHP] php mysql live feed

Check out jQuery.

http://jquery.com

On May 20, 2008, at 1:24 PM, admin@buskirkgraphics.com 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
>
> Frustrated Rick
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


Reply With Quote
  #3 (permalink)  
Old 05-20-2008
Richard Heyes
 
Posts: n/a
Default Re: [PHP] php mysql live feed

admin@buskirkgraphics.com 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 |
+----------------------------------------+
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0