I am talking with a MLS server and I'm pretty sure that I am on it. It just won't give me any arrays back.
I am logged on successfully
I pulled the Array of Listings Here are two that you may need to know.
[LIST_10] => Begin Date
[LIST_15] => Status
This worked
if($connect) {
/* Get table layout */
$fields = $rets->SearchQuery("Property", "A");
/* Take the system name / human name and place in an array */
$table = array();
foreach($fields as $field) {
$table[$field['SystemName']] = $field['LongName'];
}
/* Display output */
print_r($table);
$rets->Disconnect();
}
}
This returns 0 Records Found
if($connect) {
$sixmonths = date('c', time()-15778800); // get listings updated within last 6 months
/* Search RETS server */
$search = $rets->SearchQuery(
'Property', // Resource
"A", // Class
'((LIST_10>='.$sixmonths.'+),(LIST_15=ACT))', // DMQL, with SystemNames
array(
'Format' => 'COMPACT-DECODED',
'Select' => 'LIST_0,LIST_1,LIST_34,LIST_39,LIST_40,LIST_0,LIST_133',
'Count' => 1,//0 no record count, data 1 record count + data 2 record count, no data
'Limit' => 20
)
);
/* If search returned results */
if($rets->TotalRecordsFound() > 0) {
while($data = $rets->FetchRow($search)) {
print_r($data);
}
}
}
I am using this tutorial: http://dangodesign.net/2013/01/getting-started-with-rets-for-php/ Is there any information that would help more?