Your line 7 should be many different lines really... looks very messy...
PHP Code:
{
$DB_site->query("INSERT INTO storepoint (uid, view) VALUES ($postuserid, $newview)");
}
} elseif ($views == $view5) {
$newview = $view + $viewpoint5;
if ($uid == $postuserid) {
$DB_site->query("UPDATE storepoint SET view=$newview where uid=$postuserid");
} else {
$DB_site->query("INSERT INTO storepoint (uid, view) VALUES ($postuserid, $newview)");
}
}
} else {
Try changing that to the above. I think you may have edited and saved in Notepad with WordWrap switched on or something like that, which screws up the formatting. Make sure each { has a } to close it - you may have one too many }.