Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = $db->execute("SELECT id FROM " . TBL_ARCHIVES . " WHERE name = '" . clean($_POST['blogArchive'],1,0,0) . "'");
- if($db->numrows($query) == 0)
- {
- $query = $db->execute("INSERT INTO " . TBL_ARCHIVES . " (name, created) VALUES ('" . clean($_POST['blogArchive'],1,0,0) . "', " . time() . ")");
- }
- $query = $db->execute("SELECT id FROM " . TBL_ARCHIVES . " WHERE name = '" . clean($_POST['blogArchive'],1,0,0) . "'");
- if($db->numrows($query) == 1)
- {
- $row = $db->fetchassoc($query);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement