theevilone
IS-IT--Management
Hi,
I hope this makes sense.
I am writing a page which outputs all properties which falls between two rental values. The URL of the page would be view.cfm?rent1=100&rent2=400
I also have code in there which restricts the number of results to 10 per page.
<cfparam name="page" default="1">
<cfparam name="items_per_page" default="10">
<cfquery name="listproperty" cachedwithin="#createTimeSpan(0,0,10,0)#">
select * from db
where rent gte #rent1# and rent lte #rent2#
</cfquery>
<cfset startrow = 1+(int(page-1)*int(items_per_page))>
<cfset total_pages = Ceiling(listproperty.Recordcount / items_per_page)>
I am getting a syntax error with the select statement. Any help will be appreciated.
Thanks in advance,
Ravi
I hope this makes sense.
I am writing a page which outputs all properties which falls between two rental values. The URL of the page would be view.cfm?rent1=100&rent2=400
I also have code in there which restricts the number of results to 10 per page.
<cfparam name="page" default="1">
<cfparam name="items_per_page" default="10">
<cfquery name="listproperty" cachedwithin="#createTimeSpan(0,0,10,0)#">
select * from db
where rent gte #rent1# and rent lte #rent2#
</cfquery>
<cfset startrow = 1+(int(page-1)*int(items_per_page))>
<cfset total_pages = Ceiling(listproperty.Recordcount / items_per_page)>
I am getting a syntax error with the select statement. Any help will be appreciated.
Thanks in advance,
Ravi