...

View Full Version : Parse error: parse error, unexpected $?



cmxsevenfoldxmc
05-15-2008, 10:54 PM
Hey guys,

I'm getting this error out of nowhere:


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
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.

CFMaBiSmAd
05-15-2008, 11:08 PM
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".

cmxsevenfoldxmc
05-16-2008, 04:06 PM
Lmao thanks for the tip. It was such a small thing.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum