PHP Code:
$title = $DB_site->query_first("SELECT * FROM names WHERE group=$group";
if($name != $title)
{
$DB_site->query("
INSERT INTO names(threadid, url, site, review, date, name, group, size, section)
VALUES ('$thread['threadid']', '$url', '$site', '$review', '$date', '$name', '$group', '$size', '$section')
");
}
personally i would suggest an error message if it didn't work, but meh, i think that's what you're trying to acheive, i could barely understand your post