문제

Can you help me, I have got success in getting result by this code

 $search = $rets->Search("Property","RESI","(MLNumber=0+)");

 print_r($search);

But when I do query with multiple options, it shows error in debug file RETS ReplyCode="20206" ReplyText="Invalid Query Syntax."

And for this error my php code is

$search = $rets->Search("Property","RESI","(City=Lexington),(Status=Sold)");

print_r($search);

I have found that search should be done in specific pair, here http://www.rapattoni.com/supp/mls/rets/documents/PDF/RETS1_5_Product_Release_Notice.pdf

I'm not able to find where I'm wrong.

Thanks

도움이 되었습니까?

해결책

Anyways this answer is too late, but still I'm posting may be it be helpful for others. The search query should be written in specific pairs as mentioned in the above PDF file like

$search = $rets->Search("Property","RESI","(MLNumber=0+),(StatusDate=2013-06-01-2013-09-01)");

IMPORTANT: This is for rapattoni mls, this may differ from MLS to MLS.

I hope this would be helpful to someone.

다른 팁

If you just search for (City=Lexington) does it return results? Are you sure (Status=Sold) is correct? The syntax looks valid.

What MLS are you doing searches against?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top