mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
Updates for PDO
This commit is contained in:
+2
-1
@@ -118,7 +118,8 @@ Class Predb
|
||||
else
|
||||
$nfo = $db->escapeString("http://nzb.isasecret.com/".$matches2["nfo"]);
|
||||
|
||||
$db->query(sprintf("INSERT INTO prehash (title, nfo, size, category, predate, adddate, source, hash) VALUES (%s, %s, %s, %s, FROM_UNIXTIME(".strtotime($matches2["date"])."), now(), %s, %s)", $db->escapeString($matches2["title"]), $nfo, $size, $db->escapeString($matches2["category"]), $db->escapeString("womble"), $db->escapeString(md5($matches2["title"]))));
|
||||
$qry = $db->prepare(sprintf("INSERT INTO prehash (title, nfo, size, category, predate, adddate, source, hash) VALUES (%s, %s, %s, %s, FROM_UNIXTIME(".strtotime($matches2["date"])."), now(), %s, %s)", $db->escapeString($matches2["title"]), $nfo, $size, $db->escapeString($matches2["category"]), $db->escapeString("womble"), $db->escapeString(md5($matches2["title"]))));
|
||||
$qry->execute();
|
||||
$newnames++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user