andre 4 years ago
parent
commit
1fdaa74550
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -23,7 +23,7 @@ function checkToken($token,$db) {
 }
 
 function set($ip,$db) {
-    $dbAction = $db->prepare("INSERT INTO list (ip) VALUES (?) ON DUPLICATE KEY UPDATE count = count + 1");
+    $dbAction = $db->prepare("INSERT IGNORE INTO list VALUES (?)");
     $dbAction->bind_param('i',$ip);
     return $dbAction->execute();
 }