$sql="SELECT * FROM problemes"; $res = mysql_query ($sql) or die(mysql_error()); $total = mysql_num_rows($res); ?> <table border="1"> <tr> <th>N° du problème</th> <th>Nom du client</th> <th>Prenom du client</th> <th>Agence centre technique du client</th> <th>Telephone du client</th> <th>Mail de l'utilisateur</th> <th>Problème de l'utilisateur</th> <th>Type du probleme</th> </tr> <?php while ($tab = mysql_fetch_array($res)) { ?> <tr> <td> <?php echo $tab['id'];?> </td> <td> <?php echo $tab['nom'];?> </td> <td> <?php echo $tab['prenom'];?> </td> <td> <?php echo $tab['agence_centre_technique'];?> </td> <td> <?php echo $tab['telephone'];?> </td> <td> <?php echo $tab['mail'];?> </td> <td> <?php echo $tab['probleme'];?> </td> <td> <?php echo $tab['type_probleme'];?> </td> <td> <td colspan="20">
$id=$_GET['id'] /* et qu'aprés je fais la requête */ $sql = "select * from probleme where id=$id
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?php $id=mysql_real_escape_string ($_GET['id']); $sql = "select * from probleme where id='$id'"; ?>