Change :
<?php
if (argument) {
// end if statement
}
else if (different argument) {
// end if statement
}
else if (another different argument) {
// end if statement
else {
// do something
}
?>
To :
<?php
if (argument) {
// end if statement
}
else if (different argument) {
// end if statement
}
else if (another different argument) {
// end if statement
}
else {
// do something
}
?>
To use if statement, use the following syntax :
if (condition) {
// Put your codes here
}
Another example, if you use else if :
else if (condition) {
// Put your codes here
}
Use the curly bracket { } to contain your codes
PS: you just missed a } at the third if in your codes :)