473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is it possible to refresh a page after each row affected in DB?

I'm using countdown timer with my site developed using PHP/MySQL.
I have to insert values after clicking button .
I want to do is, if the values inserted in DB,the page have to refresh automatically.
I used session for inserting values to DB.
If i insert the whole countdown will be refreshed without having session values?
Oct 11 '10 #1
2 1429
dlite922
1,584 Expert 1GB
Can you explain your problem a little bit more? What's this program? what's this countdown.

Inserting into DB has nothing to do with the page being refreshed.

The browser does not talk to the database directly.

Browser (Firefox) <-> Web Server (Apache) <-> PHP <-> DB (MySQL)

Without sending a request from the browser, how does the web server know what PHP to call to insert things into the DB?


Dan
Oct 11 '10 #2
kovik
1,044 Expert 1GB
The closest to this that you can do is to basically ping your server with AJAX requests, asking if the page needs to be refreshed. If so, then refresh the page.
Oct 11 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Willem | last post by:
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do...
4
by: AndrewV | last post by:
I have an html page that has 2 frames ("input" and "result"). In the "input" frame, there is a text box and a button. User enters an id in the text box, then click on the button. In the click...
1
by: PawelR | last post by:
Hello group. Sorry my english is very littel but I try explain my problem. In my www aplication I have long page (about 4 screen). On the bottom of my page is DataGrid. If I change state this...
8
by: TS | last post by:
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page...
1
by: achoo | last post by:
Is it possible to extend a Web service proxy so that it understands an HTTP refresh page? Explanation: * The Web service proxy was autogenerated by Visual Studio .NET 2003 from the Web...
10
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every...
10
by: nicolai | last post by:
There are plenty of scripts that load html into a page based on the day of the week, month, or randomly, but I would like to load a different page every day of the year. I would like to give a...
1
by: drseervi | last post by:
I am using PHP 5 and I ran into a problem using $_SESSION and session_start() because they do not store values. Please suggest what's wrong with us. due to that i site is not working or user...
0
by: vinodkus | last post by:
dear sir/madam Please tell me how to refresh page using using code behind Thanks in advance
4
by: Stefan Mueller | last post by:
Hallo I'm looking for a solution to display on a web page each second a new line. Unfortunately does the following solution not work with the Internet Explorer: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.