php run once and insert twice in mysql database

I’m facing the same issue as you, the problem only occus when I use Opera or chrome.

For my case, I have an .htaccess to point every thing to the index file. Naturally the browser will request the script twice, once for the script it self, the other is for the favicon.

The fix:
Try to edit the .htaccess to prevent redirection to the index file when the browser is requesting for favicon.ico

Leave a Comment