I am new to php and i have a tiny problem. I have some client website in my database and i retrieve them on page and i want if any one click on them they would go directly on that website home page but its getting tedious for me...
for example....i retrieve www.gooogle.com as
<a href="<?php echo $row['web']; ?>">go to home</a>
and when i clicked on go to home it is showing page not found and the path is: localhost/myweb/www.google.com.
I dont know how to resolve it help if someone know about it, thanks in advance.
use this
<a href="http://<?php echo $row['web']; ?>"> home Page</a>