#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    i can't seem to figure this one out. i created a web application that allows us to keep up a dynamic schedule on our intranet. i've got everything worked out except one detail. When ever i edit / add items to the schedule, and perform the SQL Query, then click the link to return to the main index page - i have to hit refresh on my browser to see the new / changed data!

    What am i doing wrong? i'm freeing up the resultset(s) after i pull the data in. and even closing the current MySQL connecttion (to try to force a new connection when the page is revisited) - i even added pragma-nocahce and expiration meta tags to the document just to be safe!

    Has anyone else ran into this problem?

    -zenlab™

    </? echo "source available on request" ?>
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    Make the link to return to your index page a button, - call it 'edited' or something.

    On your index pages test for <?if($edited);?> and call your db_connection from there.(the else can also call the connection) this will force a refresh wether your browser wants it or not.

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    thanks, but i tried adding

    header("Pragma: no-cache");
    header("Cache-Control: no-cache, must-revalidate");

    to the page, and this seems to of taken care of it!

Similar Threads

  1. Replies: 2
    Last Post: February 9th, 2004, 11:42 AM
  2. Refreshing javascript menu linked to the page
    By lucesei in forum JavaScript Development
    Replies: 0
    Last Post: February 9th, 2004, 03:39 AM
  3. how to auto adjust resolution of web page??
    By tulip in forum ASP Programming
    Replies: 2
    Last Post: February 5th, 2004, 09:17 AM
  4. 2 web page probs - IE printing & trouble scrolling
    By cduffey346 in forum HTML Programming
    Replies: 0
    Last Post: February 4th, 2004, 04:55 PM
  5. input on web page using vb application
    By shaker22a in forum Visual Basic Programming
    Replies: 3
    Last Post: February 2nd, 2004, 07:39 PM

IMN logo majestic logo threadwatch logo seochat tools logo