-1

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.

Krity Shrestha
  • 193
  • 1
  • 3
  • 10

1 Answers1

2

add two slashes before echoing the result url. i hope this will solve your issue