Welcome to WebmasterWorld Guest from 22.214.171.124
I query my data base and get the results, I have the following url in the database: [externalsite.com...]
Thing is when it gets displayed on the page, the URL to my site is attached to the beginning of the external one. So I get the following link on my page:
[mysite.com...] instead of just the [externalsite.com...] which is what i need.
Here is my code:
echo '<p><strong>', $row['title'], '</strong><br />';
echo $row['description'], '<br />';
echo '<a href=">', $row['url'], '" target="_blank">boooooo</a>';
If anybody can point me in the right direction id be very grateful.
joined:Apr 25, 2002
As a general rule, whenever you see that sort of thing, it's because the browser thinks that what you have there is a relative URL that is relative to your current page. Usually THAT happens because it doesn't recognize that there is a protocol prefix at the front (http), which is exactly the case here.
Glad you got it sorted.