je fais appel à vous concernant un petit soucis :
<?php
mysql_connect("********","******","*****");
mysql_select_db("trombi");
if(empty($_GET['lettre']))
{
echo "<table border=\"0\" cellspacing=\"2\" width=100%>";
echo "<tr><td style=\"text-align:center;\"><strong>Liste des fiches membres par lettre</strong></td></tr>";
echo "<tr><td><a href=\"index.php?page=fiche&lettre=#\">#</a> -";
echo "<a href=\"index.php?page=fiche&lettre=a\">A</a> -";
echo "<a href=\"index.php?page=fiche&lettre=b\">B</a> -";
echo "<a href=\"index.php?page=fiche&lettre=c\">C</a> -";
echo "<a href=\"index.php?page=fiche&lettre=d\">D</a> -";
echo "<a href=\"index.php?page=fiche&lettre=e\">E</a> -";
echo "<a href=\"index.php?page=fiche&lettre=f\">F</a> -";
echo "<a href=\"index.php?page=fiche&lettre=g\">G</a> -";
echo "<a href=\"index.php?page=fiche&lettre=h\">H</a> -";
echo "<a href=\"index.php?page=fiche&lettre=i\">I</a> -";
echo "<a href=\"index.php?page=fiche&lettre=j\">J</a> -";
echo "<a href=\"index.php?page=fiche&lettre=k\">K</a> -";
echo "<a href=\"index.php?page=fiche&lettre=l\">L</a> -";
echo "<a href=\"index.php?page=fiche&lettre=m\">M</a> <br>";
echo "<a href=\"index.php?page=fiche&lettre=n\">N</a> -";
echo "<a href=\"index.php?page=fiche&lettre=o\">O</a> -";
echo "<a href=\"index.php?page=fiche&lettre=p\">P</a> -";
echo "<a href=\"index.php?page=fiche&lettre=q\">Q</a> -";
echo "<a href=\"index.php?page=fiche&lettre=r\">R</a> -";
echo "<a href=\"index.php?page=fiche&lettre=s\">S</a> -";
echo "<a href=\"index.php?page=fiche&lettre=t\">T</a> -";
echo "<a href=\"index.php?page=fiche&lettre=u\">U</a> -";
echo "<a href=\"index.php?page=fiche&lettre=v\">V</a> -";
echo "<a href=\"index.php?page=fiche&lettre=w\">W</a> -";
echo "<a href=\"index.php?page=fiche&lettre=x\">X</a> -";
echo "<a href=\"index.php?page=fiche&lettre=y\">Y</a> -";
echo "<a href=\"index.php?page=fiche&lettre=z\">Z</a> -";
echo "</td></tr>";
echo "</table>";
}else {
echo "<table border=\"0\" cellspacing=\"2\" width=100%>";
$reponse =mysql_query("SELECT * FROM membres WHERE pseudo LIKE 'T%'") or die (mysql_error());
$val = mysql_fetch_array($reponse);
echo "<tr><td>Pseudo</td>";
echo "<td>".$val['pseudo']."</td>";
echo "</tr></table>";
}
?>
J'aurais pu optimiser le code afin de ne pas mettre plein d'echo mais le but n'est pas là ..Enfait mon code fonctionne très bien mais ça m'affiche que les pseudos commençant par la lettre T logique :
SELECT * FROM membres WHERE pseudo LIKE 'T%'
Enfait j'aimerais modifier la requête afin qu'à chaque liens cliquer que ça affiche les pseudos en rapport avec la lettre.Peut être qu'il y a autre chose que la requête à modifier, enfin j'aimerais bien être éclairer sur ce point là s'il vous plait.
En vous remerciant d'avance.
Bien Cordialement.