if ((isset($post["username"]) && isset($post["password"])) && (!empty($post["username"]) && !empty($post["password"])) && ($post["username"] == "something" && $post["password"] == "something"))
{
}
Error: syntax error, unexpected T_IF in [file_name here but I rather not expose the file path and name]
I know it is kinda complicated but what’s wrong with this if-statement as I receive the error above. Although I checked several times.
That error
unexpected T_IFindicates that the if is unexpected, meaning there is an error BEFORE the if. Probably a dropped semicolon. Check above the if and you should find your problem.