Adding Html link to every line of database
I know the heading sounded a bit strange so I will try to explain it here:
I have created a recordset of a database which lists the top sites of the day now the database has a field site_names in which I add the top ten site names every day.
I m already using the nl2br code to add a line break after every line.
Now I want the lines to link to their respective sites.
See if we try to create a click here link that links to http://www.adobe.com then the code generated will be like this:
<a href="http://www.adobe.com">Click Here</a>
Now lets say the sites that I have added are
http://www.blogator.blogspot.com
so I need a code such that these values get converted into not in the database but only in the browser.
<a href="http://www.blogator.blogspot.com">http://www.blogator.blogspot.com</a>
<a href=" http://www.tensports.com"> http://www.tensports.com</a>
<a href=" http://www.fifa.com">http://www.fifa.com</a>
plz help the code that I m using now is this
<?php echo nl2br ($row_rsSites['site_names']); ?>
this code allows to add a line break to all the lines in a database.
Plz help if any one of you have not understood what m trying to explain plz let me know I will try to explain again.
