This was posted in the wrong section. This is not a script submission; it is a question about PHP. It has been moved to the PHP section.
There are at least three errors:
1) An if statement does not end with a semi-colon, so you should remove that.
2) If statements use (), not {}.
3) Arrays use [] for indices, not {}; indices must not be separated by a space; $_GET is in caps and I believe it is case sensitive.
[4) I would also suggest using ' instead of " for indices and strings and in general-- it's faster-- use " only when you want to process PHP in it.]
With these changes we get:
PHP Code:
if ($_GET['page'] == 'header')
{
/***/
}
That's the properly written version of the code.
Honestly, you should start with a basic introductory tutorial (there are many-- just do a search, or look through some of the older discussions here-- there are many links to decent tutorials) and you will become familiar with these things very quickly.
Bookmarks