Bonjour le forum, jsute une petite question, s'il vous plait :

Je cherche a afficher dans un seul div overflow, différents code PHP, chacun sera choisi selon un lien externe au div.

Exemple :

Lien 1 /// Lien 2

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<DIV style='overflow: auto; height: 250; width: 179; scrollbar-face-color: #EAEDF4; scrollbar-highlight-color: #EAEDF4; scrollbar-shadow-color: #EAEDF4; scrollbar-3dlight-color: #EAEDF4; scrollbar-arrow-color: #5F107C; scrollbar-track-color: #EAEDF4; scrollbar-darkshadow-color: #EAEDF4' ''>
<p style="margin-top: 0; margin-bottom: 0">
<font color="#6801F5" face="Verdana" size="1">
 
///// le lien 1 correspondrait a ça :
 
<? 
$res = mysql_query("SELECT `NOM` FROM joeurs WHERE SEX=HOMME order by nom") or die(mysql_error());
while (
$ligne = mysql_fetch_assoc($res)) { 
   switch ($ligne['RESULTAT']) { 
      case '1': $nom_image = "Niveau3";break; 
      case '2': $nom_image = "Niveau2";break; 
      case '3': $nom_image = "Niveau1";break; 
   } 
  echo '<img src="/images/'.$nom_image.'.gif" alt="'.$nom_image.'" title="'.$nom_image.'" /><a href="#" onClick="window.open(\'http://www.mon-domaine.com/fiche.php?NOM='.$ligne['NOM'].'\',\'popup1\',\'toolbar=no,status=no,width=780,height=615,scrollbars=no,location=no,resize=no,menubar=no\')"></A><br/>';}
?>
 
 
 
///// le lien 2 correspondrait a ça :
 
<? 
$res = mysql_query("SELECT `NOM` FROM joeurs WHERE SEX=FEMME order by nom") or die(mysql_error());
while (
$ligne = mysql_fetch_assoc($res)) { 
   switch ($ligne['RESULTAT']) { 
      case '1': $nom_image = "Niveau3";break; 
      case '2': $nom_image = "Niveau2";break; 
      case '3': $nom_image = "Niveau1";break; 
   } 
  echo '<img src="/images/'.$nom_image.'.gif" alt="'.$nom_image.'" title="'.$nom_image.'" /><a href="#" onClick="window.open(\'http://www.mon-domaine.com/fiche.php?NOM='.$ligne['NOM'].'\',\'popup1\',\'toolbar=no,status=no,width=780,height=615,scrollbars=no,location=no,resize=no,menubar=no\')"></A><br/>';}
?>
 
</div>
Mais je ne veux pas le mettre comme ça je cherche a faire apparaitre l'un ou l'autre en fonction du choix du lien ET NON faire apparaittre les deux dans un autre div overflow avec signet.

Avez vous une idée s'il vous plait?