Parse error: syntax error, unexpected T_VARIABLE, expecting T_CATCH

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Carrie Kemp

    Parse error: syntax error, unexpected T_VARIABLE, expecting T_CATCH

    I am having an error that reads

    "Parse error: syntax error, unexpected T_VARIABLE, expecting T_CATCH in /home/a1736809/public_html/Movies/index2.php on line 79"
    the code that is in question is:
    $list_data->save($dataFile );

    How would I fix this?
    Last edited by Dormilich; Oct 20 '10, 10:12 AM. Reason: applied some styling for better readability
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Give us the surrounding code. Especially the code starting from a few lines before this.

    The problem was "encountere d" there, it doesn't mean the problem is there. It looks like you forgot a CATCH statement.


    Dan

    Comment

    Working...