I don't see how that error could be coming from this page. Unless you're using different code that what you posted.
The error you posted is from a database query. The code above has only one query and almost certainly it should not generate that type of error.
SELECT * FROM all_listings_new
WHERE mls = '#form.mls_num#'
> <cfquery name="GetRecordByMLS" datasource="#gDSN#" MAXROWS="1">
> SELECT * FROM all_listings_new
> ....
BTW - Nothing to do with your error, but
A) It's better to list only columns you need rather than using SELECT *
B) Most databases have operators that limit the results returned. It's better to use
your db's operator instead of MAXROWS.
Example: MS SQL => SELECT TOP 1 CustomerName FROM Customers
Main Topics
Browse All Topics





by: gdemariaPosted on 2009-10-03 at 18:17:03ID: 25487759
Not sure if this will fix the problem, you're using # around a variable without quotes, so if the value of the variable is empty the CFIF will read ...AND NEQ '' >
um) AND #form.mls_num# NEQ ''>
Also parameterExists only exists for backward compatibility, isDefined should be used.
So this...
<cfif parameterExists(form.mls_n
Should be this.. Note the added " quotes and removal of the # signs...
<cfif isDefined("form.mls_num") AND form.mls_num NEQ ''>