Hello
I got a variable that contains a '&' character.Its a company name and it : Hobbs & Hobbs
With all other company name I tested the query worked except fot this one because of that '&' char.
Her is the query :
$requeteID = mysql_query("SELECT DISTINCT NomCie,Tel, Ville,Addresse,CodePostal,SiteWeb FROM Compagnie where NomCie='$lacie'");
while ($ligne=mysql_fetch_assoc($requeteID))
{
$leNomCie=$ligne["NomCie"];
$laddr=$ligne["Addresse"];
$leTel=$ligne["Tel"];
$laVille=$ligne["Ville"];
$leCode=$ligne["CodePostal"];
$leSite=$ligne["SiteWeb"];
}
you can check the entire code at : http://www.pastebin.com/99853
Please help me !!!