Bonjour a tous ,

je suis en train de creer un moetur de recherche en php comprenant differentes zones de saisie pour la recherche.
Par exemple je veux saisir des informations relatives a des performance avec le nom d'un performer ainsi qu'avec une date,
mais je veux aussi pouvoir obtenir ces informations en ne remplissant par exemple que le champ date.
Mon programme ne marche malheureusement qu'avec les donnees de la table performer et non performance(pf) et place (pl)
Quelqu'un peut il m'aider voici mon script ou l'on m'affiche un message d'erreur pour la ligne en rouge :
<?
$q = "SELECT pr.*,
pf.*,
pl.*
FROM performer AS pr
INNER JOIN performance AS pf ON pr.IDPerf=pf.IDPerf
INNER JOIN place AS pl ON pl.CodeStage=pf.CodeStage
WHERE pr.PerfName='$perfname'
OR pr.TypePerf='$typeperf'
OR pr.PerfCodeName='$perfcodename'
OR pf.Date='$date'
OR pf.Start='$start'
OR pf.End='$end'
OR pl.Stage='$stage'
OR pl.LocStage='$locstage' ";
$r = mysql_query($q);
while ($row=mysql_fetch_array($r)){ $idperf = $row[IDPerf];
$perfname = $row[PerfName];
$typeperf = $row[TypePerf];
$perfcodename = $row[PerfCodeName];
$tagline = $row[Tagline];
$idperformance = $row[IDPerformance];
$date = $row[Date];
$start = $row[Start];
$end = $row[End];
$codestage = $row[CodeStage];
$stage = $row[Stage];
$locstage = $row[LocStage];
echo "<tr>";
/* Affichage du contenu de performer */
print "<td>$perfname</td>\n";
print "<td>$typeperf</td>\n";
print "<td>$perfcodename</td>\n";
print "<td>$tagline</td>\n";
/* Affichage du contenu de performance */
print "<td>$date</td>\n";
print "<td>$start</td>\n";
print "<td>$end</td>\n";
/* Affichage du contenu de stage */
echo "<td>$stage</td>\n";
echo "<td>$locstage</td>\n";
echo "</tr>";
}
?>