I have htaccess file which contain:
RewriteRule . index.php [L]
index.php:
mysql_query("UPDATE users SET Views = Views + 1 WHERE SteamID = '" . mysql_real_escape_string($steamid) . "'", $db);
When I opening index.php, mysql_query executes 2 times, and column Views every time increases in 2. Why?
added:
I made test.php with content:
<?
$db = mysql_connect('localhost', '****', '******');
mysql_select_db("*****", $db);
mysql_query("UPDATE users SET Views = Views + 1 WHERE SteamID = '76561198037192367'", $db);
?>
loaded
this code is executing 3 times!! when I delete .htaccess everything is working properly. It's really strange...