Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    85
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Question Parse error: parse error, unexpected $?

    Hey guys,

    I'm getting this error out of nowhere:
    Code:
    Parse error: parse error, unexpected $ in /path/admin/newsletter_edit.php on line 543
    I can't seem to find the problem... I don't see an "extra" $ anywhere.

    Here's where the error suggests the mistake is at:

    PHP Code:
    <?php
    mysql_free_result
    ($Admin);

    mysql_free_result($News);

    mysql_free_result($Newsletter);

    mysql_free_result($Distributors);

    mysql_free_result($Marketing_n_Design);

    mysql_free_result($FAQs);

    mysql_free_result($Products);

    mysql_free_result($Downloads);

    mysql_free_result($FAQs_Temp);
    ?>
    The error keeps pointing at the "?>" as if it has an unexpected $... But I don't understand why.

    Any reason why this would be happening?

    Thank you all in advance.

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,044
    Thanks
    2
    Thanked 316 Times in 308 Posts
    The error literally means that php reached the end of your file while it was still expecting php code. This is usually caused by missing or mis-matched {}, but it can also be caused by a quoted string that is not "closed".
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • Users who have thanked CFMaBiSmAd for this post:

    cmxsevenfoldxmc (05-16-2008)

  • #3
    New Coder
    Join Date
    Jan 2008
    Posts
    85
    Thanks
    25
    Thanked 0 Times in 0 Posts
    Lmao thanks for the tip. It was such a small thing.

    I had an if statement that was enclosed like this { { instead of { }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •