I have a bit of a problem on my hands...
I have a page that does a search for some items in MySQL and then prints the results.
Also on this page are buttons that the user can click. These buttons, among other things will insert information into the database to be printed when the page is loaded again (The First Step Mentioned Above)
The problems is whenever the user clicks the button and the page is processed (self processed) the items that appear from the MySQL search don't change unless you hit the reload button. After hitting the reload button the items that the user inserted to the database appear normally.
I have run into a similar problem in the past and was able to resolve it by adding:
Code: Select all
<?php
header('Pragma: no-cache');
header('Cache-Control: no-cache, must-revalidate');
?>Thanks for your help...