Parse error: syntax error
Please help me ...
Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/sycn664/public_html/phpbb/includes/functions.php on line 3438
And here is the line on functions.php that is showing the error ..
Code:
$lasttimechecked = $row['user_last_comm_check'];
thanks
Re: Parse error: syntax error
Sometimes errors are related to lines before the one mentioned in the error message. So try to look there too.
Re: Parse error: syntax error
To add to what hspc has already said...Since you are using a variable named $row, I am assuming that this is an associative array from a database row. Is this the case?
If so, you might want to double-check your SQL query as well.
Re: Parse error: syntax error
Quote:
Originally Posted by PeejAvery
To add to what hspc has already said...Since you are using a variable named $row, I am assuming that this is an associative array from a database row. Is this the case?
If so, you might want to double-check your SQL query as well.
Parsing is carried out by the interpreter before the code is executed so therefore there won't be any distinction between weather the variable is an array / string or any other type.
The text of the error "unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING" suggests you may have forgotten a semi colon on the previous line.
Re: Parse error: syntax error
Yes, you are correct visualAd, but...I saw that the OP also posted the same problem here. You will notice that his/her problem is incorrect quotations and setup of the SQL query. Hence what I said.
Issue was resolved in that forum.
Re: Parse error: syntax error
That's where syntax highlighters come in useful. Error by colours :)