I am trying to store some link in database, for example www.google.com. Lets say after pulling the value from database I stored it in $url. Now, I am trying to set the link by doing
echo "<a href=$url>link</a>"
Now, the problem – whenever I click on the link the links goes to www.mydomain.com/www.google.com
You have to add
http://to the beggining of the link. EG:🙂