Salut j'ai un problème avec ma page j'ai deux page.
La premier page editer.php et afficher une tableau d'une table base Mysql et lorsque je cliquer sur un enregistrement il ma donne une autre page (page detail.php) qui m'affiche le détail de cet enregistrement.
**************************************************************
la premier page editer.php
***********
<html>
<head>
<title>Editer</title>
<link href="123devis.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
$connect=mysql_connect("localhost", "khalid", "123456") or die ("Echec de la connexion au serveur !");
$select=mysql_select_db("khalid");
$query="select * from public_tbl";
$result=mysql_query($query);
$totenreg=mysql_num_rows($result);
echo "<form action='detail.php' method='post' name='editer' enctype='multipart/form-data'>";
echo "<table width=99% border=1 align=center>";
echo "<tr bgcolor='#ffdddd'>";
if ($totenreg==0)
echo "<td colspan=8><h3>IL N'Y A PAS DE CLIENTS A EDITER</td>";
else
{
echo "<td colspan=8><h4>EDITER CLIENT(S)</td>";
echo "</tr>";
echo "<tr align=center bgcolor=#87CEEB>";
echo "<td><h5 class='h41'>id</td>";
echo "<td><h5 class='h41'>Nom_Utilisateur</td>";
echo "<td><h5 class='h41'>Nom</td>";
echo "<td><h5 class='h41'>Prenom</td>";
echo "<td><h5 class='h41'>Date_Naissance</td>";
echo "<td><h5 class='h41'>Mot_De_Passe</td>";
echo "<td><h5 class='h41'>Etat</td>";
echo "<td><h5 class='h41'>Choix</td>";
echo "</tr>";
$i=0;
while ($row=mysql_fetch_array($result))
{
if ($i==0)
{
echo "<tr bgcolor=#D3D3D3>";
}
else
{
echo "<tr bgcolor=#FFFFFF>";
$i--;
}
echo "<td><h5><a href=\"detail.php?id=&Nom_Utilisateur=&email=".$row["id"]." ".$row["Nom_Utilisateur"]." ".$row["email"]."\">".$row["id"]."</a></td>";
echo "<td><h5>".$row["Nom_Utilisateur"]."</td>";
echo "<td><h5>".$row["Nom"]."</td>";
echo "<td><h5>".$row["Prenom"]."</td>";
echo "<td><h5>".$row["Date_Naissance"]."</td>";
echo "<td><h5>".$row["Mot_De_Passe"]."</td>";
echo "<td><h5>".$row["disp"]."</td>";
echo "<td align=center><h5><input type='checkbox' name='type[]' value=".$row["id"]."></td>";
echo "<tr>";
}
echo "</table>";
echo "<br><br>";
echo "<table width=50% align=center>";
echo "<tr>";
echo"<td align=\"center\" width=\"40\"> <form name =\"formCom\" id =\"formu\" method=\"POST\" action=\"1.php\"><input type=\"submit\" name=\"btnomProduitCom\" class=\"valid\" value=\"Comm\"/><input type=\"hidden\" name=\"id\" value=\"$row[id]\"/></form></td>";
echo "<td align=center><input class='bouton' type='submit' name='Suivant' value='Suivant'></td>";
echo "<td align=center><input class='bouton' type='reset' name='Effacer' value='Effacer'></td>";
echo "</tr>";
}
echo "</table>";
echo "</form>";
echo "".$row["email"]."";
?>
</body>
</html>
*********************************
la 2éme page detail.php
**********
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>detail</title>
</head>
<?php
$connect=mysql_connect("localhost", "khalid", "123456") or die ("Echec de la connexion au serveur !");
$select=mysql_select_db("khalid");
$sql="select id from public_tbl";
$query="select * from public_tbl";
$result=mysql_query($query);
$totenreg=mysql_num_rows($result);
$id = $_GET["id"];
//$action = $_GET["action"];
$Nom_Utilisateur=$_GET["Nom_Utilisateur"];
$email=$_GET["email"];
//echo $id;
echo "<td><h5><input class='text' type='text' Name='id' value='$id'></td>";
echo "<td><h5><input class='text' type='text' Name='Nom_Utilisateur' value='$Nom_Utilisateur'></td>";
echo "<td><h5><input class='text' type='text' Name='email' value='$email'></td>";
echo "<tr bgcolor=#FFFFFF>";
?>
<body>
<p>
<form target="rechbas" method='post' name="rechercher" enctype="multipart/form-data">
<?php
echo "<td><h5><input class='text' type='text' Name='id' value='$id'></td>";
?>
</p>
<p><td><input type="radio" name="choix" value="id" checked>id</td></p>
<p><input class="bouton" type="submit" name="Rechercher" value="Rechercher"></p>
</body>
</html>