PHP: Detect Page Refresh
问题 I have a page action.php on which I run an SQL query through the code, so that whenever the page is viewed the query runs like its like counting page views <?php mysqli_query("UPDATE ****"); ?> The problem is when the page is refreshed, the query is run & PAGE REFRESH is counted as a PAGE VIEW which I want to avoid. Question: How to avoid it ? What I am looking for is a simple solution so that I can check if( page was refresh ) //some condition { do } 回答1: I found this snippet here, and it