Citation :
if ($zcrite=='znom'){
$requetemysql = "SELECT * FROM ".$table." WHERE nom LIKE \"%".$recherche."%\"";
}
elseif ($zcrite=='zprenom') {
$requetemysql = "SELECT * FROM ".$table." WHERE prenom LIKE \"%".$recherche."%\"";
}
elseif ($zcrite=='zvillez'){
$requetemysql = "SELECT * FROM ".$table." WHERE ville LIKE \"%".$recherche."%\"";
}
else{
$requetemysql = 'SELECT * FROM '.$table.' WHERE MATCH (categorie,nom,prenom,profession,societe,adresse,adresse2,codepostal,ville,fixe,portable,fonction,mail,commentaire ) AGAINST(\''.$recherche.'*\'IN BOOLEAN MODE)';}
|