I'm trying to see if the user has entered a website URL into the database with the following code. If the user did not enter their website's URL, do not display anything. If the user did enter their website, display the website.
I think I'm doing it wrong.
<?php
if (!empty($url))
{
echo'';
} else {
echo'p>Website: <a href="<?php echo "http://","$url"; ?>" title="<?php echo "$url"; ?>"><?php echo "http://","$url"; ?></a></p>';
}
?>