PDA

View Full Version : make a url from dynamic table a link


pogro711
04-17-2010, 09:10 AM
hello,

i think this is just quite simple to do but, since in a newbie in php, i really dont know how to handle it.

i have a user profile page, and from that page, users will see their entered details when registered,
like : username, password, etc.

my dynamic table includes a url colum that gathers url from the user.

somehow i was able to manage to display all data of the logged in user from the tables,

i want that url data that came from the table an active link.

ex.

username: pogro
pasword:*****
url:www.mywebsite.com

i want the url to be an active link once clicked they will be directed to this url.

pls help.

thanks in advance

pogro711
04-18-2010, 07:53 AM
<a href="#"><?php echo $row_rsUserInfo['url']; ?></a></a>

i want to make the url an active link

pls help.

its really ugent

Jason Byrnes
04-19-2010, 07:52 AM
use the following:

<a href="<?php echo $row_rsUserInfo['url']; ?>"><?php echo $row_rsUserInfo['url']; ?></a>