September 16th, 2000, 09:48 PM
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.
September 16th, 2000, 10:28 PM
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>
September 17th, 2000, 05:07 AM
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.