Bonsoir,
j'ai un script qui permet d'afficher groupes (groupe est une table mysql)dont le code est le suivant:
<?
echo'<link rel="stylesheet" type="text/css" href="index.css" />';
echo "<div id='msg' >";
echo '<table>';
echo '<tr>
<th nowrap="nowrap">Nom du source</th>
<th nowrap="nowrap">Nom du groupe</th>
<th nowrap="nowrap">Date</th>
<th nowrap="nowrap">Sujet</th>
<th nowrap="nowrap">Message</th>
</tr>';
if(isset($_REQUEST["sujet"])){
include ('connexion1.php');
$res = mysql_query("SELECT nomsource,nomgroupe,date, sujet,message FROM journalextracomm WHERE sujet='".$_REQUEST["sujet"]."' ORDER BY date DESC");
while($row = mysql_fetch_object($res)) {
$nomsource=$row->nomsource;
$nomgroupe=$row->nomgroupe;
$date=$row->date;
$sujet=$row->sujet;
$message=$row->message;
echo "<tr>
<td nowrap='nowrap'>$nomsource</td>
<td nowrap='nowrap'>$nomgroupe</td>
<td nowrap='nowrap'>$date</td>
<td nowrap='nowrap'>$sujet</td>
<td>$message</td>
</tr>";
}
}
echo '</table>';
echo'<p>';
$nbrLigne=mysql_num_rows($res);
echo'<h2>';
echo "Le nombre de messages est : $nbrLigne";
echo'</h2>';
echo "</div>";
?>
j'aimerais que les $nomgroupe s'affichent se forme des liens,et lorsque je clic sur un lien il va m'afficher les messages du groupe correspondants. j'ai besoin de votre aide.
Cordialement,
Aamsa