I have this piece of code in one of my HTML/PHP pages.
<a href=\"coups_cat.php?catname=$catname\"><BR>$currentrow<BR><b>$catname</b></a>
Its a URL that uses a field in the database ($catname) to link to another php file that executes a SQL SELECT based on the contents of the previous field ($catname). The problem is that some of the values of that field have the & sign, which doesn't work in a URL.
I am sure there is a function to deal with this, but I am new to PHP and don't have a clue what it would be.
Does anyone know?