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


Recent Events
  • 18/11/2017 Black Friday is coming

    Don't wait BLACK FRIDAY, use FRIDAY17 coupon code to get 35% discount for all our extensions right now.

  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.


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 4 Years, 8 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 4 Years, 8 Months ago Karma: 670
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 4 Years, 8 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 4 Years, 8 Months ago Karma: 670
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