Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Compound WHERE Clause in Ari Data Tables?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Compound WHERE Clause in Ari Data Tables?
#36232
Compound WHERE Clause in Ari Data Tables? 11 Years, 3 Months ago Karma: 0
Hello
I am using ARI Data Tables and in SQL query section I have:

SELECT
CompanyName, WEB
FROM sheet4
WHERE City = {$REQUEST:City}
AND
cuisine = {$REQUEST:cuisine}
AND
price = {$REQUEST:price}

Unfortunately, it doesn't work. Is it possible to have compound where clause such as one above?

Thanking you in advance for your assistance.
The administrator has disabled public write access.
 
#36237
Re:Compound WHERE Clause in Ari Data Tables? 11 Years, 3 Months ago Karma: 748
Could you provide a link to a page where we can see a problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#36271
Re:Compound WHERE Clause in Ari Data Tables? 11 Years, 3 Months ago Karma: 0
Hi -

Thanks for your response, the link you requested is as follows:

palmsprings-mobile.com/index.php/portfolio/video-portfolio

The full query in the SQL section of Data Tables is:

SELECT
CompanyName, City, WEB
FROM sheet4
WHERE City = {$REQUEST:City}
AND
cuisine = {$REQUEST:cuisine}
AND
price = {$REQUEST:price}
Last Edit: 2013/01/31 00:34 By tmediacom.
The administrator has disabled public write access.
 
#36313
Re:Compound WHERE Clause in Ari Data Tables? 11 Years, 3 Months ago Karma: 748
Hello,

Use the following SQL query:


SELECT
CompanyName,
City,
WEB
FROM
sheet4
WHERE
({$REQUEST:City|empty:''} = '' OR City = {$REQUEST:City|empty:''})
AND
({$REQUEST:Cuisine|empty:''} = '' OR cuisine = {$REQUEST:Cuisine|empty:''})
AND
({$REQUEST:Price Range|empty:''} = '' OR price = {$REQUEST:Price Range|empty:''})


Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1