MySQL Forums
Forum List  »  PHP

Re: PHP script continues to return data from table that phpmyadmin says is empty
Posted by: Barry Galbraith
Date: March 06, 2017 04:12AM

Are you sure that phpmyadmin and your php script are reading the same MySQL server?

Browsers also have a habit of caching pages. To make sure the browser actually runs the script you need to add a rand=(random value) to the query string. With a different random value each time the browser will run the script to get the (different) page rather than giving the cached version.

e.g. 1st time to get the page.
my.website.com/phpscript.php?rand=1234

second time
my.website.com/phpscript.php?rand=1345

Your script doesn't have to parse the rand value, it's just so that the browser will see it as a new request.

Good luck,
Barry.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.