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?

SQL Table Adding HTML to column data
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: SQL Table Adding HTML to column data
#39492
SQL Table Adding HTML to column data 11 Years, 2 Months ago Karma: 0
Is it possible to add some HTML code to one column of data read from a MySQL database before it is displayed? I can't figure out how to do this without putting the entire HTML string into the database.

I wish to turn a text string into a hyperlink. Any help would be appreciated.
The administrator has disabled public write access.
 
#39502
Re:SQL Table Adding HTML to column data 11 Years, 2 Months ago Karma: 748
Could you describe what data is stored in the column which you want to modify and how do you want it modify?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#39544
Re:SQL Table Adding HTML to column data 11 Years, 2 Months ago Karma: 0
The idea is to take the column shown in the attached table and transform each entry to a hyperlink such as:

www.etfsmart.com/etf/index.php?ticker=AADR
www.etfsmart.com/etf/index.php?ticker=AAIT
etc.

The rest of the table should be displayed as it is shown.

So in other words adding some extra HTML to each entry in one column.

Thanks
The administrator has disabled public write access.
 
#39558
Re:SQL Table Adding HTML to column data 11 Years, 2 Months ago Karma: 748
Use the following code:

Code:


{arisqltablecolumns}
  {arisqltablecolumn id="Ticker"}
    {coltemplate}<a href="http://www.etfsmart.com/etf/index.php?ticker={$Ticker}">{$Ticker}</a>{/coltemplate}
  {/arisqltablecolumn}
{/arisqltablecolumns}



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