I ran into an issue while trying to validate my website. I am converting the title of a food into the url for seo reasons. The issue I have is that if the title has a symbol, for example, the & sign it does not validate obviously. How can I convert the title into friendly links? The link is stored in a variable and somehow needs stripped and replaced. Here is how I am calling it...
This stores the link or title:
Code: Select all
$thisName = MYSQL_RESULT($result,$i,"name");Code: Select all
<a href="fooddetail.php?id=<?php echo $thisId; ?>"><?php echo $thisName; ?></a>