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?

One table with selection
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: One table with selection
#58390
One table with selection 7 Years, 7 Months ago Karma: 0
Hi all,

I have one big table with data.
I made different modules to show the data from that table with

SELECT Code,State,Name,2M,6M,10M,12M,15M,17M,20M,30M,40M,80M
FROM `WA_TBL` WHERE DXCCID=227 ORDER BY State

In every module the DXCCID is different.

Is there a way that i can use a pulldown selection to select the different DXCCID's.
So i need only one module.
The administrator has disabled public write access.
Greetz,

Ken
 
#58394
Re:One table with selection 7 Years, 7 Months ago Karma: 748
Hello,

It is possible to use request variables in "WHERE" clause of SQL query. For example if want to use "id" request variable, a query will look like:

Code:


SELECT 
 Code,State,Name,2M,6M,10M,12M,15M,17M,20M,30M,40M,80M
FROM 
 `WA_TBL` 
WHERE 
 ({$REQUEST:id|empty:''} = '' || DXCCID={$REQUEST:id|empty:''}) 
ORDER BY State



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