Hey
I was wondering if it is possible to automatically update a webpage when a new row is inserted to the database??
You see when i recieve emails it goes Directly in to the data base but if i want to see if a new email has been sent i have to refresh the page.
Is there anyway that when a new email is sent to the data base it will autmatically appear on the webpage ??
Thanx
automatically update
Moderator: General Moderators
- KissMyBrain
- Forum Newbie
- Posts: 2
- Joined: Tue Jun 03, 2003 2:22 pm
Hello,
isn't it possible to realize this with a combined php/javascript?
I can't describe it very detailled because of my bad english and my rudimentary javascript knowledge, but whats about this:
A JavaScript can make a action in a specified interval. isnt it possible to launch a small php-page in the background which connects to the Database and checks if a change has happen?
the mainpage could be refreshed if anything is changed...
Please correct me if I misunderstood something...
Bye
KissMyBrain
isn't it possible to realize this with a combined php/javascript?
I can't describe it very detailled because of my bad english and my rudimentary javascript knowledge, but whats about this:
A JavaScript can make a action in a specified interval. isnt it possible to launch a small php-page in the background which connects to the Database and checks if a change has happen?
the mainpage could be refreshed if anything is changed...
Please correct me if I misunderstood something...
Bye
KissMyBrain
- Sevengraff
- Forum Contributor
- Posts: 232
- Joined: Thu Apr 25, 2002 9:34 pm
- Location: California USA
- Contact:
people would probally think that the window is a pop-up ad, and close it themselvs, or think badly of the website. The auto-refresh after 300 seconds is a good idea if your page gets updates very often.KissMyBrain wrote:Hello,
isn't it possible to realize this with a combined php/javascript?
![]()
I can't describe it very detailled because of my bad english and my rudimentary javascript knowledge, but whats about this:
A JavaScript can make a action in a specified interval. isnt it possible to launch a small php-page in the background which connects to the Database and checks if a change has happen?
the mainpage could be refreshed if anything is changed...
Please correct me if I misunderstood something...
Bye
KissMyBrain