Delayed MySQL Results When Using PHP
Posted: Wed Dec 10, 2003 11:44 am
I have a PHP page that is supposed to read and display all of the lines in a MySQL table. The page itself works fine, but the displayed results do not match what is actually in the table. If I browse the table using PHPMyAdmin, the newly added lines are shown. But if I go to the PHP page, these newly added results do not appear, even after refreshing. It is not until a few hours later that the lines are finally displayed by the PHP page.
I've already tried adding
header("Cache-Control: no-cache");
and
header("Pragma: no-cache");
but that didn't seem to help.
I'm relatively new to PHP and MySQL, but not to front end/database integration (I used to use ASP and MS SQL). But I've never seen anything like this. Any help would be greatly appreciated.
I've already tried adding
header("Cache-Control: no-cache");
and
header("Pragma: no-cache");
but that didn't seem to help.
I'm relatively new to PHP and MySQL, but not to front end/database integration (I used to use ASP and MS SQL). But I've never seen anything like this. Any help would be greatly appreciated.