Comments (5)
Where you have an = (equal) sign in your query, change that to an =| (equal followed by a pipe). See if that works.
from phrets.
Appreciate the suggestion, that didn't fix the problem. Tried all variations of the query with your suggested change but same error still appears. I will keep at it and see if I can figure it out why. Any suggestions in the meantime, please feel free to comment, any help is greatly appreciated.
from phrets.
I haven't had to touch my PHRETS code since I wrote one script a while ago
so this isn't expert advice: I had problems because I was setting various
constants, like the the second parameter to the SearchQuery where you are
using "RES", the way the examples had it. That didn't match the class name
that RETS database used, but I don't remember if it gave me an error or
just no results. After exploring my providers info in http://retsmd.com/ for
a bit I found all the specific constants that I needed for my queries.
Anyway, even if it doesn't help your particular problem, it might help get
a better understanding of the nature of the RETS data.
-Al
On Thu, Apr 11, 2013 at 9:16 PM, raymondkennedy [email protected]:
I am new to PHPRETS. I have been able to make a connection. I am just
starting to try and get a handle on this info. I tried using various
SearchQuery -> examples even those provided on here but I keep getting this
error. I can't figure out why.Array ( [type] => rets [code] => 20203 [text] => Invalid Query Type. )
Here is my basic code...
$rets_login_url = "_";
$rets_username = "__";
$rets_password = "_*****";require_once("phrets.php");
$rets = new phRETS;
$rets->AddHeader('Accept', "* / *");
$rets->AddHeader('RETS-Version',"RETS/1.7");
$rets->SetParam("debug_mode", true);$connect = $rets->Connect($rets_login_url,$rets_username,$rets_password);
if ($connect)
{
echo " + Connected
\n";
} else {
echo " + Not connected:
\n";
print_r($rets->Error());
exit;
}$search = $rets->SearchQuery("Property","RES,"(CIT=FRANKFORT)");
print_r($rets->Error());
I tried using listed names on examples sites like this one and looked up
the names with my MLS info. No matter what I put in there it gives me that
error.Thanks
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/15
.
from phrets.
In the sample code you provided, you print out $rets->Error() in a block
that would occur without a successful connection. Are you sure that your
server supports version 1.7? I would also recommend using RetsMD to
visually inspect the Server objects and classes.
Greg Rundlett
founder / CEO
eQuality Technology
http://eQuality-Tech.com http://equality-tech.com/
voice 978-225-0471
[image: Twitter icon] http://twitter.com/eQualityTech
[image: Facebook icon] http://www.facebook.com/eQualityTechnology
[image: Google+
icon]http://plus.google.com/u/0/b/103166669544267620800/103166669544267620800
[image: LinkedIn icon] http://www.linkedin.com/company/3021433
On Thu, Apr 11, 2013 at 9:16 PM, raymondkennedy [email protected]:
I am new to PHPRETS. I have been able to make a connection. I am just
starting to try and get a handle on this info. I tried using various
SearchQuery -> examples even those provided on here but I keep getting this
error. I can't figure out why.Array ( [type] => rets [code] => 20203 [text] => Invalid Query Type. )
Here is my basic code...
$rets_login_url = "_";
$rets_username = "__";
$rets_password = "_*****";require_once("phrets.php");
$rets = new phRETS;
$rets->AddHeader('Accept', "* / *");
$rets->AddHeader('RETS-Version',"RETS/1.7");
$rets->SetParam("debug_mode", true);$connect = $rets->Connect($rets_login_url,$rets_username,$rets_password);
if ($connect)
{
echo " + Connected
\n";
} else {
echo " + Not connected:
\n";
print_r($rets->Error());
exit;
}$search = $rets->SearchQuery("Property","RES,"(CIT=FRANKFORT)");
print_r($rets->Error());
I tried using listed names on examples sites like this one and looked up
the names with my MLS info. No matter what I put in there it gives me that
error.Thanks
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/15
.
from phrets.
Thanks everyone. RETSMD cleared everything up. My vendor sent me documentation that said our server supports 1.7 but RetsMD showed it as 1.5. In either case, it was a simple name change that fixed the error. Really glad to know about RetsMD, very helpful I am knew to this so as I proceed I will have plenty of questions, good to know there is a helpful group here.
from phrets.
Related Issues (20)
- PHP Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 6: HOT 1
- php 8.x deprecated errors HOT 5
- Version of guzzlehttp/psr7 need to pe nailed to some specific version
- How do you update PHRETS? HOT 2
- PHPDocs
- ReplyCode 20203 HOT 1
- Remove default parameter in Response __call method
- RETS HOT 1
- I am not able to fetch the property image url with using ml_num. how to fetch properties image url? HOT 1
- Fetch all the data with area code
- PHP 8 HOT 2
- FLEX MLS starting pulling in all listings including closed HOT 1
- Undefined constant "PHRETS\CURLOPT_COOKIEFILE" at vendor/troydavisson/phrets/src/Session.php HOT 1
- What is STATUS=A in Query
- All the property are not getting downloaded.
- PHRETS 1.72 Question HOT 2
- Get Property Details
- Lots of tmp files HOT 1
- $rets->FreeResult($photos) not found HOT 2
- GetObject return Invalid header syntax error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phrets.