code adds my url to url for link?
Code:
<?php
// Retrieve all the data from the "webcalendar_events" table
$result = mysql_query("SELECT * FROM webcalendar_events )
or die(mysql_error());
echo
"Decription: {$row['description']}</p>";
}
I got a calendar from PHPScripts which allows you to enter links in it.
The above script (I snipped) is used to get featured dates to place on the page. Works great, with the help of Traq, but for some reason my webpage added my url to links found in the description field. If the link in the calendar (which works correctly within the calendar) is
Code:
http://www.there.com
the link I get using the above code gives me a link with the address
Code:
http://mysite.com/%22http://www.there.com
Is the problem the script? or the way the calendar puts it into the db?