PHP: Detect Page Refresh

前端 未结 9 1457
余生分开走
余生分开走 2020-11-28 13:54

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 vi

9条回答
  •  醉梦人生
    2020-11-28 13:54

    If you just want to run it once for a user, I would set a session cookie and then use an if() statement.

    
    

提交回复
热议问题