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?

Conditionally Display and Image
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Conditionally Display and Image
#57087
Conditionally Display and Image 8 Years, 1 Month ago Karma: 0
First, I would like to say that I very much like the product.

I have a question. How can I conditionally display an image in a table depending on the value retrieved from the table.

So suppose I pull 3 columns in my select from the table

ID, DESCRIPTION, TYPE

IF the Type = 1, then display some hardcoded image 1
If the Type = 2, then display some hardcoded image 2


Is this possible?
The administrator has disabled public write access.
 
#57088
Re:Conditionally Display and Image 8 Years, 1 Month ago Karma: 747
Hello,

If data is shown from a database, it is possible to use CASE expression in SQL query.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#57098
Re:Conditionally Display and Image 8 Years, 1 Month ago Karma: 0
Thanks for the help.
I am using it here.NJ Saltwater Fishing Piers
The administrator has disabled public write access.
 
Go to topPage: 1