Real Estate Forums

REW IDX REW Customers only - ask questions, get support and report feed issues here.

Reply
 
Thread Tools Display Modes
Old 11-27-2008, 12:01 AM
OCTeam's Avatar
OCTeam OCTeam is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2005
Location: Orange County, Ca
Posts: 1,175
OCTeam is on a distinguished road
Default Snippet error

On LocalRealEstateTeam..

Page /capistrano-doro.php shows
Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/localrealestateteam.com/httpdocs/index.php(136) : eval()'d code on line 3

Snippet is #mls-sj-capistrano-doro#. Assume the problem is the ' in D'Oro in
$_REQUEST['search_tract'][] = 'Capistrano D'Oro'; (another example is #mls-sj-captains-hill#)

I tried changing the snippet code, getting rid of the ', substituting tract name to tract code and cannot get it to work.

I have this issue with several other snippets not pulling data as well. Is there a request I can use that pulls the tract code rather than the tract name for these few snippets with the ' in the names? In this snippet above (Capistrano D'Oro), it would be CO.

Or, what do I need to correct within the exisiting snippets in order for them to pull the data? Please wave your magic wand...

Thanks...
__________________
Welcome to your guide to Orange County, Ca Real Estate and MLS Search, and the home to the world's best climate at San Clemente Real Estate where you can enjoy luxury coastal living with a beach close lifestyle.
Reply With Quote
Old 11-27-2008, 12:54 PM
Aaron Aaron is online now
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 8,411
Aaron is on a distinguished road
Send a message via MSN to Aaron
Default Re: Snippet error

Hi Drew,

I've added a request for the tract code you can now use:

$_REQUEST['search_tract_code'][] = "CO";

As far as the names with the apostrophes in them - I've seen this before and requires 1 thing.

- Make the snippet with double quotes around the tract name: ex: $_REQUEST['search_tract'][] = "Capistrano D'Oro";

So any value with a single quote in it would need to be surrounded by double quotes: ex:
$_REQUEST['snippet_title'] = 'Capistrano D'Oro Real Estate';
Would cause a parse error.

$_REQUEST['snippet_title'] = "Capistrano D'Oro Real Estate";
Would work.

Hope that helps - Isn't programming fun
__________________
Aaron
Programming
Real Estate Webmasters
Reply With Quote
Old 11-27-2008, 12:58 PM
OCTeam's Avatar
OCTeam OCTeam is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2005
Location: Orange County, Ca
Posts: 1,175
OCTeam is on a distinguished road
Default Re: Snippet error

Thanks, Aaron.. Appreciate the explanation. You always make it sound so simple...!
__________________
Welcome to your guide to Orange County, Ca Real Estate and MLS Search, and the home to the world's best climate at San Clemente Real Estate where you can enjoy luxury coastal living with a beach close lifestyle.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
snippet error OCTeam REW IDX 2 09-10-2008 10:23 PM
Error from #sellerform# snippet mitch.argon REW CMS 1 Questions 3 03-11-2008 05:07 PM
Comments Snippet Error Benjamin Dona REW CMS 1 Questions 1 10-27-2007 12:54 PM
page error - snippet form code issue mitch.argon REW CMS 1 Questions 2 09-14-2007 11:10 AM

For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 01:08 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.