The session_start() function doesn’t have to be in its own set of PHP tags. You were also missing the ending semicolon.
You can put multiple conditions in an if-statement by using && or || operators.
You can nest if-statements (put if-statements inside of if-statements). Use tab to indent code blocks that you place inside of other code blocks.
Typically, the action you would expect most to happen would be first (the “allow” result instead of the “block” result).
You can use echo to spit out text as you go.
Typically, when writing HTML in a string, it’s easier to use a single-quote string, rather than a double-quote string. That way, there are fewer characters to escape, which usually leads to fewer mistakes.
If your thread hasn't received any answers, [B]don't bump it.[/B]
Do not revive old threads by posting on them and getting them back to the first position of the list. Those discussions were finished or didn’t get enough attention in the first place.
That’s correct. sphinxy, you can ‘bump’ your post by giving some more info, for example about further tests you’ve done, that might help people to anwser your question.
In this particular case, it was not clear (to me at least) that you were still asking a question in your post #3.
Just missing a closing bracket as indicated, I think.
As a general guide – when trying to chase this error down, simply start at the left and count the number of opening brackets - you should then have the same number of closing ones. You had 3 and 2.