0
Recordset - passing multiple parameters
New Here
,
/t5/dreamweaver-discussions/recordset-passing-multiple-parameters/td-p/127666
Jan 18, 2009
Jan 18, 2009
Copy link to clipboard
Copied
Hi,
I am trying to create a search page that recieves two parameters passed through a query string. I am trying to get search results between two numeric values ie Minprice and Maxprice. The following code tested in DW CS3 just gererates no data, even though there are data in my default ranges.
Here is my SQL and parameters below. Please can someone help?
SELECT *
FROM tblProperties
WHERE Price > MMColParam AND (Price < %MMColParam2% )
Price is the table column and the two paramaters are passed through the url
Parameter Details
Name = MMColParam
Type = Text
Value = Request.QueryString("Minprice")
Default Value = 1
Name = MMColParam2
Type = Text
Value = Request.QueryString("Maxprice")
Default Value = 2000
I am trying to create a search page that recieves two parameters passed through a query string. I am trying to get search results between two numeric values ie Minprice and Maxprice. The following code tested in DW CS3 just gererates no data, even though there are data in my default ranges.
Here is my SQL and parameters below. Please can someone help?
SELECT *
FROM tblProperties
WHERE Price > MMColParam AND (Price < %MMColParam2% )
Price is the table column and the two paramaters are passed through the url
Parameter Details
Name = MMColParam
Type = Text
Value = Request.QueryString("Minprice")
Default Value = 1
Name = MMColParam2
Type = Text
Value = Request.QueryString("Maxprice")
Default Value = 2000
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/recordset-passing-multiple-parameters/m-p/127667#M133679
Jan 19, 2009
Jan 19, 2009
Copy link to clipboard
Copied
simonbelfast wrote:
> Hi,
> I am trying to create a search page that recieves two parameters passed
> through a query string. I am trying to get search results between two numeric
> values ie Minprice and Maxprice. The following code tested in DW CS3 just
> gererates no data, even though there are data in my default ranges.
> Here is my SQL and parameters below. Please can someone help?
>
> SELECT *
> FROM tblProperties
> WHERE Price > MMColParam AND (Price < %MMColParam2% )
>
> Price is the table column and the two paramaters are passed through the url
>
> Parameter Details
>
> Name = MMColParam
> Type = Text
> Value = Request.QueryString("Minprice")
> Default Value = 1
>
> Name = MMColParam2
> Type = Text
> Value = Request.QueryString("Maxprice")
> Default Value = 2000
SELECT *
FROM tblProperties
WHERE Price BETWEEN MMColParam AND MMColParam2
Dooza
> Hi,
> I am trying to create a search page that recieves two parameters passed
> through a query string. I am trying to get search results between two numeric
> values ie Minprice and Maxprice. The following code tested in DW CS3 just
> gererates no data, even though there are data in my default ranges.
> Here is my SQL and parameters below. Please can someone help?
>
> SELECT *
> FROM tblProperties
> WHERE Price > MMColParam AND (Price < %MMColParam2% )
>
> Price is the table column and the two paramaters are passed through the url
>
> Parameter Details
>
> Name = MMColParam
> Type = Text
> Value = Request.QueryString("Minprice")
> Default Value = 1
>
> Name = MMColParam2
> Type = Text
> Value = Request.QueryString("Maxprice")
> Default Value = 2000
SELECT *
FROM tblProperties
WHERE Price BETWEEN MMColParam AND MMColParam2
Dooza
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

