<?php include("global.php"); // <-- just my habit to put " not ' if ($bbuserinfo[userid] == 0) { echo "Login!"; // <-- you forgot ; } else { echo "You\\'re already Logged in!"; // <-- you forgot to escape ' and forgot to add ; } ?>