Closed Thread Icon

Topic awaiting preservation: Auto refresh page after delete from db (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28625" title="Pages that link to Topic awaiting preservation: Auto refresh page after delete from db (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Auto refresh page after delete from db <span class="small">(Page 1 of 1)</span>\

 
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-09-2006 14:24

I have a pretty simple php app that let's me add, edit and delete contacts from a MySQL database. When I edit, add or delete a contact and go back to the index page with the contacts listed, I have to hit refresh to see the change.

Is there a way to automatically get it to refresh. I don't want to use the meta tag to refresh it.

Thanks in advance!

Later,

C:\

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 11-09-2006 15:22

Yeah, you'll need to tell the browser not to cache the site. See php->header() (user comments) for the details on that.

Or add a random parameter to the url

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-09-2006 15:47

that did the trick! Thanks a bunch!

Later,

C:\

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 11-09-2006 17:11

I sure hope you went with the header

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-09-2006 18:13

oh yeah. piece of cake. sometimes we forget to just RTFM

Later,

C:\

« BackwardsOnwards »

Show Forum Drop Down Menu