[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrap <a href> Tag Around Result


Hi,

Is it possible to wrap an <a href> tag around a column in a resultset? For 
example:

SELECT Firstname FROM Users;

Matthew
Mark
Luke
John

Becomes:

<a href="index.php?action=view_user&firstname=Matthew">Matthew</a>
<a href="index.php?action=view_user&firstname=Mark">Mark</a>
<a href="index.php?action=view_user&firstname=Luke">Luke</a>
<a href="index.php?action=view_user&firstname=John">John</a>

I need to do this with pure SQL - no server side scripting...

Thanks for your advice 



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.