I have an if statement inside a function that is checking to see if a session has been set
function addNewUser
if (isset($_SESSION['hasrun'])){
do this
}else{
do this
}
The error I get is:
Parse error: parse error, expecting `'('' ... on line 143 which is the first line of the if statement.
I've searched all over google and found that my syntax is the same as all of the examples I have found...
I'm stumped
Any Ideas?
function addNewUser
if (isset($_SESSION['hasrun'])){
do this
}else{
do this
}
The error I get is:
Parse error: parse error, expecting `'('' ... on line 143 which is the first line of the if statement.
I've searched all over google and found that my syntax is the same as all of the examples I have found...
I'm stumped
Any Ideas?