diff options
Diffstat (limited to 'includes/funktion_counter.php')
-rw-r--r-- | includes/funktion_counter.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/includes/funktion_counter.php b/includes/funktion_counter.php deleted file mode 100644 index 39d65a1f..00000000 --- a/includes/funktion_counter.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - $SQL = "SELECT `Anz` FROM `Counter` WHERE `URL`=\"" . $Page["Name"] . "\""; - $Erg = mysql_query($SQL, $con); - - echo mysql_error($con); - - if(mysql_num_rows($Erg) == 0) { - $SQL = "INSERT INTO `Counter` ( `URL` , `Anz` ) VALUES ('" . $Page["Name"] . "', '1');"; - $Erg = mysql_query($SQL, $con); - } elseif(mysql_num_rows($Erg) == 1) { - $SQL = "UPDATE `Counter` SET `Anz` = '" . (mysql_result($Erg, 0, 0) +1) . "' WHERE `URL` = '" . $Page["Name"] . "' LIMIT 1 ;"; - $Erg = mysql_query($SQL, $con); - } -?> |