je cherche à exclure des résultats du champ mailProf.
C'est une chaine de caractère qui contient le mot avec des chiffres dont je ne connais pas ni le nombre ni la valeur:
'%mailEnEttente%'
j'essaie d'utiliser
NOT LIKE '%mailEnEttente%'
Mais cela me renvoie malgrés tout des champs avec 'mailEnEttente'
$sql="SELECT * FROM profmusique WHERE codePostalProf LIKE '".$departement."%'
AND mailProf NOT LIKE '%mailEnEttente%'
AND instrumentPrincipalProf='".$_POST['instrumentRechercher']."'
or discipline1Prof='".$_POST['instrumentRechercher']."'
or discipline2Prof='".$_POST['instrumentRechercher']."'
or discipline3Prof='".$_POST['instrumentRechercher']."'
or discipline4Prof='".$_POST['instrumentRechercher']."'
ORDER BY villeProf ASC";
Merci