English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I' ve code a contact database with using Php - MySQL. The point is I need a small script which refresh pages after some operation.. For example when i delete or update an information about a contact, it automaticaly re-query and loads infos...

2006-08-14 23:27:25 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

Exemine the demo http://ispanyaonline.net/contact

2006-08-15 00:02:06 · update #1

3 answers

just call the query subroutine then.
or refresh whole page using header function.

2006-08-14 23:34:50 · answer #1 · answered by Darmawan W. Anandita 2 · 0 1

It sounds like you want to refresh the user page after it loads on the client computer when there is a DB update. This isn't possible using PHP. At best you can have some javascript (Ajax) run on the client's computer that queries the server for the last update, if its newer than what is loaded, it should refresh the page.

This is too complicated to include code here, but would be made easier by using an Ajax toolkit like Yahoo's or Dojo.

2006-08-15 00:51:51 · answer #2 · answered by John J 6 · 0 0

When you post data to server this refresh automaticcaly. if you have to refresh again you use header function. you use "Location" property

2006-08-14 23:51:41 · answer #3 · answered by Koorosh 2 · 0 0

fedest.com, questions and answers