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?

[SOLVED] Use returned data in link
(1 viewing) (1) Guest
Go to bottomPage: 1234
TOPIC: [SOLVED] Use returned data in link
#30467
[SOLVED] Use returned data in link 11 Years, 9 Months ago Karma: 2
So I'd like to encapsulate the returned data inside a link.

If the returned data is a list of names, I'd like the list to be clickable:

<a href="ViewLog?User=Name1">Name1</a>
<a href="ViewLog?User=Name2">Name2</a>
<a href="ViewLog?User=Name3">Name3</a>
<a href="ViewLog?User=Name4">Name4</a>


Right now, my "in theory" MySQL command is:


SELECT Name
AS CONCAT('<a href="ViewLog?User=', @Name, '">', @Name, '</a>')
FROM Table;
Last Edit: 2013/01/21 19:56 By JugglingReferee.
The administrator has disabled public write access.
 
#30468
Re: Use returned data in link 11 Years, 9 Months ago Karma: 2
This works!


SELECT CONCAT('<a href="ViewLog?Name=', Name, '">', Name, '</a>') AS Name
FROM Users;


Thanks!
The administrator has disabled public write access.
 
#31141
Re: Use returned data in link 11 Years, 8 Months ago Karma: 0
if you are giving this kind of solution
it means that the component does not support links right?

have some way to double click and open a new page?

thanks so much,
The administrator has disabled public write access.
____________________
Valter Junior
Hangus Design
 
#31142
Re: Use returned data in link 11 Years, 8 Months ago Karma: 748
Hello,

The extension can detect link automatically for selected columns or links can be created based on selected data from a database or a CSV file.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#31143
Re: Use returned data in link 11 Years, 8 Months ago Karma: 0
thanks for your fast reply.
I am very interested on your product, but I need to know something before buy.

could I do something like that:

select name, address, phone from my_table

-------------------------------------
name | address | phone
-------------------------------------
user1 address1 phone1
user2 address2 phone2
user3 address3 phone3
user4 address4 phone4
-------------------------------------

add add a link to each user like below:

my_joomla_site//index.php/my_page ?

if yes, how?
creating a link on the query? select "<a href=''">+name+"<a>",address, phone from my_table

?

unfortunatelly I cant see this in any demo =(


thanks in advace,

valter
The administrator has disabled public write access.
____________________
Valter Junior
Hangus Design
 
#31144
Re: Use returned data in link 11 Years, 8 Months ago Karma: 748
Sorry, but it is not clear how the link should look. Is it created based on data from the table? Is it unique link for each user or the same link is used for all users?

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