Let My baseurl is like: http://abcd.com/
, I want to use anchor tag <a href="<?php echo $result->url ?>"> Test Page </a>
Here url is field name of database table which contain url try.com
. I want to use that url.
When I click Test Page
in browser it redirect to http://abcd.com/try.com
Here abcd.com
is my baseurl and try.com
is the value of table field.
How to remove automatic attached baseurl.
add two slashes before echoing the result url. i hope this will solve your issue