I have a database table that stores a URL. What I need is to grab these URLs from the table and make it clickable with the URL header as an anchor.
Here is what I tried:
while($row4 = mysql_fetch_assoc($result4)) { echo "<a href =\"$row4[Url1]\">".$row4['Title1']. "</a>"; }
For example, my tilte1 , which youtube and Url1 is www.youtube.com .
But when I click on it, it will be localhost/mysite/www.youtube.com
How can i fix this?
user2709893
source share