diff options
Diffstat (limited to 'crawler.php')
-rw-r--r-- | crawler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawler.php b/crawler.php index 45753f3..f1c37cc 100644 --- a/crawler.php +++ b/crawler.php @@ -197,7 +197,7 @@ function urlHasError($url) $hash = md5($url);
$conn = initDbConnection();
- $checkStmt = $conn->prepare('INSERT INTO error_url (url, hash) VALUES (:url, :hash)');
+ $checkStmt = $conn->prepare('INSERT IGNORE INTO error_url (url, hash) VALUES (:url, :hash)');
$checkStmt->execute([':url' => $url, 'hash' => $hash]);
}
|