Hi
When this block of code is executed "match" is output but the second sql insert is also executed. I cant figure out why and it seems impossible to me.
if ($_SESSION["valid_user"] == $global_item['author']) {
echo "match";
}
else {
if ($_SESSION["valid_user"])
$insert_views = mysql_query("INSERT INTO {$section}_views VALUES ('','$global_item_id',now(),'$user_firstname $user_lastname')");
else
$insert_views = mysql_query("INSERT INTO {$section}_views VALUES ('','$global_item_id',now(),'Unknown')");
}