MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 22nd, 2004, 11:41 AM
dave123 dave123 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 dave123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is it possible to use DHTML, PHP and MySQL for auto update?

I am trying to create a DHTML page that automatically updates a particular area of text from a
database using PHP and MySQL. Therefore, I change the text in my MySQL database table, the clients browser
will automatically receive the new text by updating once every 10 seconds.

I do know how to retrieve the text from my database using PHP and MySQL but I have no idea whether it is even
possible to have some DHTML code in a page automatically requery the database every 10seconds and get the results
from the PHP script.

Please help me

Regards

Dave

Reply With Quote
  #2  
Old May 22nd, 2004, 07:38 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
hmmm..... i could suggest js or meta-tags.

- Pheifel

Reply With Quote
  #3  
Old May 25th, 2004, 01:58 PM
ClearWater ClearWater is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 ClearWater User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Dave,

For an audience that uses IE, and newer versions of Netscape, you can accomplish this task by creating iframes on the page. You can keep the src of your iframe as a PHP file that fetches the correct data from the database. The source PHP page can be refreshed using JavaScript every 10 seconds. That way, you will not have to refresh the entire page every 10 seconds. Hope that helps.

Thanks, ClearWater

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Is it possible to use DHTML, PHP and MySQL for auto update?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway