RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

I need help with a parse error!

Join Date: Jun 2004
Location: Worcester, Massachusetts
Posts: 180
Reputation: Toba is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 3
Toba's Avatar
Toba Toba is offline Offline
Junior Poster

Re: I need help with a parse error!

  #4  
Jun 21st, 2004
jcates23,

I know what your bug is. You are using the HTML entity for ampersand instead of "&", the correct notation . PHP does not convert HTML entities to ordinal characters before parsing. Your line 93 should read:

[PHP]
if (isset($terms) && $terms == 1)
[/PHP]

Note: I usually separate terms with parenthesis before boolean math:

[PHP]
if ((isset($terms)) && ($terms == 1))
[/PHP]

You'll notice that you've used the & HTML entity in several places. If you don't change them all, another parse error will occur later on.l
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:15 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC