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

    Join Date
    Aug 2000
    Rep Power
    Ok whenever I try to add, update, or delete anything from something stored in mysql and try to call the mysql database from a different php page whenever I try going to the php I have to hit refresh for the new results to appear. My question is why is this and how do I fix this? For example I try to add a news article.. The next php you successfully added a news article bla bla click here to view what you posted.. . When I do the click here it takes me to the page that calls from the database and what i just added is not there... not until I hit refresh? Oh and I am looping.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Rep Power
    try adding a always changing variable to the end of your link like
    print '<a href="view.php?time='. time() .'">view your new posting</a>
  4. #3
  5. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Caro, Michigan
    Rep Power
    You can set a meta tag with an expiration date in the past. that'll force the page to be refreshed each time. Not sure on the syntax, though. look it up.

    ---John Holmes...

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 03:12 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo