문제

I'm working on phrets. When I use GetMetadataTypes() method it shows result, but, when I do search query, it doesnt, I mean no result.

Currently this is on my local server(XAMPP). Does it works on local server?

My code is here

$search = $rets->SearchQuery("Property","RES","(ListDate=1990-01-01+)");
// get the first record returned
$listing = $rets->FetchRow($search);
// get list of fields for our loop
$fields = $rets->SearchGetFields($search);
// loop through each field in the response and pull it's value
foreach ($fields as $field) {
        echo "+ {$field} value is {$listing[$field]}\n";
}

Please help me

Thanks

도움이 되었습니까?

해결책

There are some rets servers which is having classes in which there should be some required fields in the query in order to pull the data. egs: Instead of (ListDate=1990-01-01+) , you may need to pass the required fields like ((ListDate=1990-01-01+)(Status!=ACT,SLD)) where "Status" is the required field.

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