Problème d'update
Rastahigh
-
Rastahigh -
Rastahigh -
Bonjour, salut , je viens de faire un site en php mysql et jai un probleme avec un update qui ne veut pas se faire.
J'entre toute les coordoné (quand je clic sur modifier elle apparraissent dans des champs input , mais quand je clic sur envoyé l'update ne se fait pas , rien ne se passe.
Voici la page que j'utilise dans son entièreté :
<?php
$marequete_fiche = "SELECT * FROM t_membre WHERE membre_id=".$_GET["id"];
$resultat_fiche = mysql_query($marequete_fiche);
?>
<?php
// je vais faire ma requête sql INSERT
if (isset($_POST["todo"])) {
if ($_POST["todo"]=="add") {
$requetetodo_membre = "INSERT INTO t_membre (membre_pseudo,membre_age,membre_localite,
membre_div1_pt1,
membre_div1_pt2,
membre_div1_pt3,
membre_div1_pt4,
membre_div1_pt5,
membre_div1_pt6,
membre_div1_pt7,
membre_div1_pt8,
membre_div1_pt_tot,
membre_div2_pt1,
membre_div2_pt2,
membre_div2_pt3,
membre_div2_pt4,
membre_div2_pt5,
membre_div2_pt6,
membre_div2_pt7,
membre_div2_pt8,
membre_div2_pt_tot,
membre_div3_pt1,
membre_div3_pt2,
membre_div3_pt3,
membre_div3_pt4,
membre_div3_pt5,
membre_div3_pt6,
membre_div3_pt7,
membre_div3_pt8,
membre_div3_pt_tot,
membre_div4_pt1,
membre_div4_pt2,
membre_div4_pt3,
membre_div4_pt4,
membre_div4_pt5,
membre_div4_pt6,
membre_div4_pt7,
membre_div4_pt8,
membre_div4_pt_tot
) VALUES ('".trim(addslashes($_POST["membre_pseudo"]))."','".trim(addslashes($_POST["membre_age"]))."','".trim(addslashes($_POST["membre_localite"]))."',
'".trim(addslashes($_POST["membre_div1_pt1"]))."',
'".trim(addslashes($_POST["membre_div1_pt2"]))."',
'".trim(addslashes($_POST["membre_div1_pt3"]))."',
'".trim(addslashes($_POST["membre_div1_pt4"]))."',
'".trim(addslashes($_POST["membre_div1_pt5"]))."',
'".trim(addslashes($_POST["membre_div1_pt6"]))."',
'".trim(addslashes($_POST["membre_div1_pt7"]))."',
'".trim(addslashes($_POST["membre_div1_pt8"]))."',
'".trim(addslashes($_POST["membre_div1_pt_tot"]))."',
'".trim(addslashes($_POST["membre_div2_pt1"]))."',
'".trim(addslashes($_POST["membre_div2_pt2"]))."',
'".trim(addslashes($_POST["membre_div2_pt3"]))."',
'".trim(addslashes($_POST["membre_div2_pt4"]))."',
'".trim(addslashes($_POST["membre_div2_pt5"]))."',
'".trim(addslashes($_POST["membre_div2_pt6"]))."',
'".trim(addslashes($_POST["membre_div2_pt7"]))."',
'".trim(addslashes($_POST["membre_div2_pt8"]))."',
'".trim(addslashes($_POST["membre_div2_pt_tot"]))."',
'".trim(addslashes($_POST["membre_div3_pt1"]))."',
'".trim(addslashes($_POST["membre_div3_pt2"]))."',
'".trim(addslashes($_POST["membre_div3_pt3"]))."',
'".trim(addslashes($_POST["membre_div3_pt4"]))."',
'".trim(addslashes($_POST["membre_div3_pt5"]))."',
'".trim(addslashes($_POST["membre_div3_pt6"]))."',
'".trim(addslashes($_POST["membre_div3_pt7"]))."',
'".trim(addslashes($_POST["membre_div3_pt8"]))."',
'".trim(addslashes($_POST["membre_div3_pt_tot"]))."',
'".trim(addslashes($_POST["membre_div4_pt1"]))."',
'".trim(addslashes($_POST["membre_div4_pt2"]))."',
'".trim(addslashes($_POST["membre_div4_pt3"]))."',
'".trim(addslashes($_POST["membre_div4_pt4"]))."',
'".trim(addslashes($_POST["membre_div4_pt5"]))."',
'".trim(addslashes($_POST["membre_div4_pt6"]))."',
'".trim(addslashes($_POST["membre_div4_pt7"]))."',
'".trim(addslashes($_POST["membre_div4_pt8"]))."',
'".trim(addslashes($_POST["membre_div4_pt_tot"]))."',
)";
}
elseif ($_POST["todo"]=="updt") {
$requetetodo_membre = "UPDATE t_membre SET membre_pseudo = '".trim(addslashes($_POST["membre_pseudo"]))."' ,membre_age = '".trim(addslashes($_POST["membre_age"]))."' ,membre_localite = '".trim(addslashes($_POST["membre_localite"]))."',
membre_div1_pt1 = '".trim(addslashes($_POST["membre_div1_pt1"]))."',
membre_div1_pt2 = '".trim(addslashes($_POST["membre_div1_pt2"]))."',
membre_div1_pt3 = '".trim(addslashes($_POST["membre_div1_pt3"]))."',
membre_div1_pt4 = '".trim(addslashes($_POST["membre_div1_pt4"]))."',
membre_div1_pt5 = '".trim(addslashes($_POST["membre_div1_pt5"]))."',
membre_div1_pt6 = '".trim(addslashes($_POST["membre_div1_pt6"]))."',
membre_div1_pt7 = '".trim(addslashes($_POST["membre_div1_pt7"]))."',
membre_div1_pt8 = '".trim(addslashes($_POST["membre_div1_pt8"]))."',
membre_div1_pt_tot = '".trim(addslashes($_POST["membre_div1_pt_tot"]))."',
membre_div2_pt1 = '".trim(addslashes($_POST["membre_div2_pt1"]))."',
membre_div2_pt2 = '".trim(addslashes($_POST["membre_div2_pt2"]))."',
membre_div2_pt3 = '".trim(addslashes($_POST["membre_div2_pt3"]))."',
membre_div2_pt4 = '".trim(addslashes($_POST["membre_div2_pt4"]))."',
membre_div2_pt5 = '".trim(addslashes($_POST["membre_div2_pt5"]))."',
membre_div2_pt6 = '".trim(addslashes($_POST["membre_div2_pt6"]))."',
membre_div2_pt7 = '".trim(addslashes($_POST["membre_div2_pt7"]))."',
membre_div2_pt8 = '".trim(addslashes($_POST["membre_div2_pt8"]))."',
membre_div2_pt_tot = '".trim(addslashes($_POST["membre_div2_pt_tot"]))."',
membre_div3_pt1 = '".trim(addslashes($_POST["membre_div3_pt1"]))."',
membre_div3_pt2 = '".trim(addslashes($_POST["membre_div3_pt2"]))."',
membre_div3_pt3 = '".trim(addslashes($_POST["membre_div3_pt3"]))."',
membre_div3_pt4 = '".trim(addslashes($_POST["membre_div3_pt4"]))."',
membre_div3_pt5 = '".trim(addslashes($_POST["membre_div3_pt5"]))."',
membre_div3_pt6 = '".trim(addslashes($_POST["membre_div3_pt6"]))."',
membre_div3_pt7 = '".trim(addslashes($_POST["membre_div3_pt7"]))."',
membre_div3_pt8 = '".trim(addslashes($_POST["membre_div3_pt8"]))."',
membre_div3_pt_tot = '".trim(addslashes($_POST["membre_div3_pt_tot"]))."',
membre_div4_pt1 = '".trim(addslashes($_POST["membre_div4_pt1"]))."',
membre_div4_pt2 = '".trim(addslashes($_POST["membre_div4_pt2"]))."',
membre_div4_pt3 = '".trim(addslashes($_POST["membre_div4_pt3"]))."',
membre_div4_pt4 = '".trim(addslashes($_POST["membre_div4_pt4"]))."',
membre_div4_pt5 = '".trim(addslashes($_POST["membre_div4_pt5"]))."',
membre_div4_pt6 = '".trim(addslashes($_POST["membre_div4_pt6"]))."',
membre_div4_pt7 = '".trim(addslashes($_POST["membre_div4_pt7"]))."',
membre_div4_pt8 = '".trim(addslashes($_POST["membre_div4_pt8"]))."',
membre_div4_pt_tot = '".trim(addslashes($_POST["membre_div4_pt_tot"]))."',
WHERE membre_id = ".$_POST["id"];
}
$resultattodo_membre = mysql_query($requetetodo_membre);
}
?>
<?php // je fais ma requete DELETE ET SELECT si $_GET["todo"] existe
if(isset($_GET["todo"])) {
if($_GET["todo"]=="del"){
$requete_todo_membre = "DELETE FROM t_membre WHERE membre_id=".$_GET["id"];
unlink("../membres/membre_".$_GET["id"].".jpg");
}
elseif ($_GET["todo"]=="show"){
$requete_todo_membre = "SELECT * FROM t_membre WHERE membre_id=".$_GET["id"];
}
$resultat_todo_membre = mysql_query($requete_todo_membre);
}
?>
<div id="principal">
<?php $ligne = mysql_fetch_array($resultat_fiche); ?>
<img src="../membres/membre_<?php echo $ligne ['membre_id'] ; ?>.jpg" alt="" width="120" height="150" id="img_carte">
<h2>Administration de <?php echo stripslashes ($ligne ['membre_pseudo']) ; ?> </h2>
<p>Age : <?php echo stripslashes ($ligne ['membre_age']) ; ?> ans.<br>
Localité : <?php echo stripslashes ($ligne ['membre_localite']) ; ?></p>
<h3>Ses statistiques :</h3>
Division 1 :<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div1_pt_tot"]) ; ?></strong> pt</td>
</table>
Division 2 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div2_pt_tot"]) ; ?></strong> pt</td>
</tr>
</table>
Division 3 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div3_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div3_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div3_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div3_pt_tot"]) ; ?></strong> pt</td>
</tr>
</table>
Division 4 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div4_pt_tot"]) ; ?></strong> pt</td>
</tr>
</table>
<p><a href="index2.php?p=membrefiche&id=<?php echo $ligne["membre_id"] ?>&todo=show">Cliquez ici pour modifier le membre</a></p>
<h3>Modifier la fiche de <?php echo $ligne ['membre_pseudo'] ;?> :</h3>
<form action="index2.php?p=membrefiche&id=<?php echo $ligne ["membre_id"] ; ?>" " method="post" enctype="multipart/form-data" id="formu">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>Entrez son pseudo :<br />
<input name="membre_pseudo" type="text" id="membre_pseudo"
value="<?php
if(isset($_GET["todo"]) && $_GET["todo"]=="show"){
$ligne = mysql_fetch_array($resultat_todo_membre);
echo stripslashes(str_replace('"',"'",($ligne["membre_pseudo"])));
}
?>"/></td>
</tr>
<tr>
<td>Entrez son age :<br />
<input name="membre_age" type="text" id="membre_age" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_age"])));
}
?>"/></td>
</tr>
<tr>
<td>Entrez sa localité :<br />
<input name="membre_localite" type="text" id="membre_localite" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_localite"])));
}
?>"/></td>
</tr>
</table>
Division 1 :<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt1" type="text" id="membre_div1_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt2" type="text" id="membre_div1_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt3" type="text" id="membre_div1_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt4" type="text" id="membre_div1_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt5" type="text" id="membre_div1_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt6" type="text" id="membre_div1_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt7" type="text" id="membre_div1_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt8" type="text" id="membre_div1_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div1_pt_tot" type="text" id="membre_div1_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt_tot"])));
}
?>" size="2"/></td>
</table>
Division 2 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt1" type="text" id="membre_div2_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt2" type="text" id="membre_div2_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt3" type="text" id="membre_div2_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt4" type="text" id="membre_div2_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt5" type="text" id="membre_div2_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt6" type="text" id="membre_div2_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt7" type="text" id="membre_div2_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt8" type="text" id="membre_div2_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div2_pt_tot" type="text" id="membre_div2_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt_tot"])));
}
?>" size="2"/></td>
</tr>
</table>
Division 3 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt1" type="text" id="membre_div3_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt2" type="text" id="membre_div3_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt3" type="text" id="membre_div3_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt4" type="text" id="membre_div3_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt5" type="text" id="membre_div3_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt6" type="text" id="membre_div3_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt7" type="text" id="membre_div3_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt8" type="text" id="membre_div3_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div3_pt_tot" type="text" id="membre_div3_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt_tot"])));
}
?>" size="2"/></td>
</tr>
</table>
Division 4 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt1" type="text" id="membre_div4_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt2" type="text" id="membre_div4_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt3" type="text" id="membre_div4_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt4" type="text" id="membre_div4_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt5" type="text" id="membre_div4_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt6" type="text" id="membre_div4_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt7" type="text" id="membre_div4_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt8" type="text" id="membre_div4_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div4_pt_tot" type="text" id="membre_div4_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt_tot"])));
}
?>" size="2"/></td>
</tr>
</table>
<label>
<input type="submit" name="button" id="button" value="Envoyer" action="index2.php?p=membrefiche&id=<?php echo $ligne ['membre_id'] ; ?>"/>
<input type="hidden" name="id" value="<?php
if(isset($_GET["todo"]) && $_GET["todo"]=="show"){
echo $ligne["membre_id"];
}
?>" />
<input name="todo" type="hidden" id="todo" value="<?php
if(isset($_GET["todo"]) && $_GET["todo"]=="show"){
echo "updt";
}
else{
echo "add";
}
?>" />
</label>
</form>
</div>
J'entre toute les coordoné (quand je clic sur modifier elle apparraissent dans des champs input , mais quand je clic sur envoyé l'update ne se fait pas , rien ne se passe.
Voici la page que j'utilise dans son entièreté :
<?php
$marequete_fiche = "SELECT * FROM t_membre WHERE membre_id=".$_GET["id"];
$resultat_fiche = mysql_query($marequete_fiche);
?>
<?php
// je vais faire ma requête sql INSERT
if (isset($_POST["todo"])) {
if ($_POST["todo"]=="add") {
$requetetodo_membre = "INSERT INTO t_membre (membre_pseudo,membre_age,membre_localite,
membre_div1_pt1,
membre_div1_pt2,
membre_div1_pt3,
membre_div1_pt4,
membre_div1_pt5,
membre_div1_pt6,
membre_div1_pt7,
membre_div1_pt8,
membre_div1_pt_tot,
membre_div2_pt1,
membre_div2_pt2,
membre_div2_pt3,
membre_div2_pt4,
membre_div2_pt5,
membre_div2_pt6,
membre_div2_pt7,
membre_div2_pt8,
membre_div2_pt_tot,
membre_div3_pt1,
membre_div3_pt2,
membre_div3_pt3,
membre_div3_pt4,
membre_div3_pt5,
membre_div3_pt6,
membre_div3_pt7,
membre_div3_pt8,
membre_div3_pt_tot,
membre_div4_pt1,
membre_div4_pt2,
membre_div4_pt3,
membre_div4_pt4,
membre_div4_pt5,
membre_div4_pt6,
membre_div4_pt7,
membre_div4_pt8,
membre_div4_pt_tot
) VALUES ('".trim(addslashes($_POST["membre_pseudo"]))."','".trim(addslashes($_POST["membre_age"]))."','".trim(addslashes($_POST["membre_localite"]))."',
'".trim(addslashes($_POST["membre_div1_pt1"]))."',
'".trim(addslashes($_POST["membre_div1_pt2"]))."',
'".trim(addslashes($_POST["membre_div1_pt3"]))."',
'".trim(addslashes($_POST["membre_div1_pt4"]))."',
'".trim(addslashes($_POST["membre_div1_pt5"]))."',
'".trim(addslashes($_POST["membre_div1_pt6"]))."',
'".trim(addslashes($_POST["membre_div1_pt7"]))."',
'".trim(addslashes($_POST["membre_div1_pt8"]))."',
'".trim(addslashes($_POST["membre_div1_pt_tot"]))."',
'".trim(addslashes($_POST["membre_div2_pt1"]))."',
'".trim(addslashes($_POST["membre_div2_pt2"]))."',
'".trim(addslashes($_POST["membre_div2_pt3"]))."',
'".trim(addslashes($_POST["membre_div2_pt4"]))."',
'".trim(addslashes($_POST["membre_div2_pt5"]))."',
'".trim(addslashes($_POST["membre_div2_pt6"]))."',
'".trim(addslashes($_POST["membre_div2_pt7"]))."',
'".trim(addslashes($_POST["membre_div2_pt8"]))."',
'".trim(addslashes($_POST["membre_div2_pt_tot"]))."',
'".trim(addslashes($_POST["membre_div3_pt1"]))."',
'".trim(addslashes($_POST["membre_div3_pt2"]))."',
'".trim(addslashes($_POST["membre_div3_pt3"]))."',
'".trim(addslashes($_POST["membre_div3_pt4"]))."',
'".trim(addslashes($_POST["membre_div3_pt5"]))."',
'".trim(addslashes($_POST["membre_div3_pt6"]))."',
'".trim(addslashes($_POST["membre_div3_pt7"]))."',
'".trim(addslashes($_POST["membre_div3_pt8"]))."',
'".trim(addslashes($_POST["membre_div3_pt_tot"]))."',
'".trim(addslashes($_POST["membre_div4_pt1"]))."',
'".trim(addslashes($_POST["membre_div4_pt2"]))."',
'".trim(addslashes($_POST["membre_div4_pt3"]))."',
'".trim(addslashes($_POST["membre_div4_pt4"]))."',
'".trim(addslashes($_POST["membre_div4_pt5"]))."',
'".trim(addslashes($_POST["membre_div4_pt6"]))."',
'".trim(addslashes($_POST["membre_div4_pt7"]))."',
'".trim(addslashes($_POST["membre_div4_pt8"]))."',
'".trim(addslashes($_POST["membre_div4_pt_tot"]))."',
)";
}
elseif ($_POST["todo"]=="updt") {
$requetetodo_membre = "UPDATE t_membre SET membre_pseudo = '".trim(addslashes($_POST["membre_pseudo"]))."' ,membre_age = '".trim(addslashes($_POST["membre_age"]))."' ,membre_localite = '".trim(addslashes($_POST["membre_localite"]))."',
membre_div1_pt1 = '".trim(addslashes($_POST["membre_div1_pt1"]))."',
membre_div1_pt2 = '".trim(addslashes($_POST["membre_div1_pt2"]))."',
membre_div1_pt3 = '".trim(addslashes($_POST["membre_div1_pt3"]))."',
membre_div1_pt4 = '".trim(addslashes($_POST["membre_div1_pt4"]))."',
membre_div1_pt5 = '".trim(addslashes($_POST["membre_div1_pt5"]))."',
membre_div1_pt6 = '".trim(addslashes($_POST["membre_div1_pt6"]))."',
membre_div1_pt7 = '".trim(addslashes($_POST["membre_div1_pt7"]))."',
membre_div1_pt8 = '".trim(addslashes($_POST["membre_div1_pt8"]))."',
membre_div1_pt_tot = '".trim(addslashes($_POST["membre_div1_pt_tot"]))."',
membre_div2_pt1 = '".trim(addslashes($_POST["membre_div2_pt1"]))."',
membre_div2_pt2 = '".trim(addslashes($_POST["membre_div2_pt2"]))."',
membre_div2_pt3 = '".trim(addslashes($_POST["membre_div2_pt3"]))."',
membre_div2_pt4 = '".trim(addslashes($_POST["membre_div2_pt4"]))."',
membre_div2_pt5 = '".trim(addslashes($_POST["membre_div2_pt5"]))."',
membre_div2_pt6 = '".trim(addslashes($_POST["membre_div2_pt6"]))."',
membre_div2_pt7 = '".trim(addslashes($_POST["membre_div2_pt7"]))."',
membre_div2_pt8 = '".trim(addslashes($_POST["membre_div2_pt8"]))."',
membre_div2_pt_tot = '".trim(addslashes($_POST["membre_div2_pt_tot"]))."',
membre_div3_pt1 = '".trim(addslashes($_POST["membre_div3_pt1"]))."',
membre_div3_pt2 = '".trim(addslashes($_POST["membre_div3_pt2"]))."',
membre_div3_pt3 = '".trim(addslashes($_POST["membre_div3_pt3"]))."',
membre_div3_pt4 = '".trim(addslashes($_POST["membre_div3_pt4"]))."',
membre_div3_pt5 = '".trim(addslashes($_POST["membre_div3_pt5"]))."',
membre_div3_pt6 = '".trim(addslashes($_POST["membre_div3_pt6"]))."',
membre_div3_pt7 = '".trim(addslashes($_POST["membre_div3_pt7"]))."',
membre_div3_pt8 = '".trim(addslashes($_POST["membre_div3_pt8"]))."',
membre_div3_pt_tot = '".trim(addslashes($_POST["membre_div3_pt_tot"]))."',
membre_div4_pt1 = '".trim(addslashes($_POST["membre_div4_pt1"]))."',
membre_div4_pt2 = '".trim(addslashes($_POST["membre_div4_pt2"]))."',
membre_div4_pt3 = '".trim(addslashes($_POST["membre_div4_pt3"]))."',
membre_div4_pt4 = '".trim(addslashes($_POST["membre_div4_pt4"]))."',
membre_div4_pt5 = '".trim(addslashes($_POST["membre_div4_pt5"]))."',
membre_div4_pt6 = '".trim(addslashes($_POST["membre_div4_pt6"]))."',
membre_div4_pt7 = '".trim(addslashes($_POST["membre_div4_pt7"]))."',
membre_div4_pt8 = '".trim(addslashes($_POST["membre_div4_pt8"]))."',
membre_div4_pt_tot = '".trim(addslashes($_POST["membre_div4_pt_tot"]))."',
WHERE membre_id = ".$_POST["id"];
}
$resultattodo_membre = mysql_query($requetetodo_membre);
}
?>
<?php // je fais ma requete DELETE ET SELECT si $_GET["todo"] existe
if(isset($_GET["todo"])) {
if($_GET["todo"]=="del"){
$requete_todo_membre = "DELETE FROM t_membre WHERE membre_id=".$_GET["id"];
unlink("../membres/membre_".$_GET["id"].".jpg");
}
elseif ($_GET["todo"]=="show"){
$requete_todo_membre = "SELECT * FROM t_membre WHERE membre_id=".$_GET["id"];
}
$resultat_todo_membre = mysql_query($requete_todo_membre);
}
?>
<div id="principal">
<?php $ligne = mysql_fetch_array($resultat_fiche); ?>
<img src="../membres/membre_<?php echo $ligne ['membre_id'] ; ?>.jpg" alt="" width="120" height="150" id="img_carte">
<h2>Administration de <?php echo stripslashes ($ligne ['membre_pseudo']) ; ?> </h2>
<p>Age : <?php echo stripslashes ($ligne ['membre_age']) ; ?> ans.<br>
Localité : <?php echo stripslashes ($ligne ['membre_localite']) ; ?></p>
<h3>Ses statistiques :</h3>
Division 1 :<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div1_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div1_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div1_pt_tot"]) ; ?></strong> pt</td>
</table>
Division 2 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div2_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div2_pt_tot"]) ; ?></strong> pt</td>
</tr>
</table>
Division 3 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div3_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div3_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div2_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div3_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div3_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div3_pt_tot"]) ; ?></strong> pt</td>
</tr>
</table>
Division 4 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt1"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt2"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt3"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt4"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt5"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt6"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><?php echo stripslashes ($ligne ["membre_div4_pt7"]) ; ?></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><?php echo stripslashes ($ligne ["membre_div4_pt8"]) ; ?></td>
<td align="right" valign="top" bgcolor="#999999">Total : <strong><?php echo stripslashes ($ligne ["membre_div4_pt_tot"]) ; ?></strong> pt</td>
</tr>
</table>
<p><a href="index2.php?p=membrefiche&id=<?php echo $ligne["membre_id"] ?>&todo=show">Cliquez ici pour modifier le membre</a></p>
<h3>Modifier la fiche de <?php echo $ligne ['membre_pseudo'] ;?> :</h3>
<form action="index2.php?p=membrefiche&id=<?php echo $ligne ["membre_id"] ; ?>" " method="post" enctype="multipart/form-data" id="formu">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>Entrez son pseudo :<br />
<input name="membre_pseudo" type="text" id="membre_pseudo"
value="<?php
if(isset($_GET["todo"]) && $_GET["todo"]=="show"){
$ligne = mysql_fetch_array($resultat_todo_membre);
echo stripslashes(str_replace('"',"'",($ligne["membre_pseudo"])));
}
?>"/></td>
</tr>
<tr>
<td>Entrez son age :<br />
<input name="membre_age" type="text" id="membre_age" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_age"])));
}
?>"/></td>
</tr>
<tr>
<td>Entrez sa localité :<br />
<input name="membre_localite" type="text" id="membre_localite" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_localite"])));
}
?>"/></td>
</tr>
</table>
Division 1 :<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt1" type="text" id="membre_div1_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt2" type="text" id="membre_div1_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt3" type="text" id="membre_div1_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt4" type="text" id="membre_div1_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt5" type="text" id="membre_div1_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt6" type="text" id="membre_div1_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div1_pt7" type="text" id="membre_div1_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div1_pt8" type="text" id="membre_div1_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div1_pt_tot" type="text" id="membre_div1_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div1_pt_tot"])));
}
?>" size="2"/></td>
</table>
Division 2 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt1" type="text" id="membre_div2_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt2" type="text" id="membre_div2_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt3" type="text" id="membre_div2_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt4" type="text" id="membre_div2_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt5" type="text" id="membre_div2_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt6" type="text" id="membre_div2_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div2_pt7" type="text" id="membre_div2_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div2_pt8" type="text" id="membre_div2_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div2_pt_tot" type="text" id="membre_div2_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div2_pt_tot"])));
}
?>" size="2"/></td>
</tr>
</table>
Division 3 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt1" type="text" id="membre_div3_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt2" type="text" id="membre_div3_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt3" type="text" id="membre_div3_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt4" type="text" id="membre_div3_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt5" type="text" id="membre_div3_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt6" type="text" id="membre_div3_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div3_pt7" type="text" id="membre_div3_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div3_pt8" type="text" id="membre_div3_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div3_pt_tot" type="text" id="membre_div3_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div3_pt_tot"])));
}
?>" size="2"/></td>
</tr>
</table>
Division 4 :
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt1" type="text" id="membre_div4_pt1" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt1"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt2" type="text" id="membre_div4_pt2" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt2"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt3" type="text" id="membre_div4_pt3" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt3"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt4" type="text" id="membre_div4_pt4" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt4"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt5" type="text" id="membre_div4_pt5" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt5"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt6" type="text" id="membre_div4_pt6" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt6"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#999999"><input name="membre_div4_pt7" type="text" id="membre_div4_pt7" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt7"])));
}
?>" size="2"/></td>
<td width="40" align="right" valign="top" bgcolor="#CCCCCC"><input name="membre_div4_pt8" type="text" id="membre_div4_pt8" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt8"])));
}
?>" size="2"/></td>
<td align="right" valign="top" bgcolor="#999999">Total : <input name="membre_div4_pt_tot" type="text" id="membre_div4_pt_tot" value="<?php
if (isset($_GET["todo"]) && $_GET["todo"]=="show") {
echo stripslashes(str_replace('"',"'",($ligne["membre_div4_pt_tot"])));
}
?>" size="2"/></td>
</tr>
</table>
<label>
<input type="submit" name="button" id="button" value="Envoyer" action="index2.php?p=membrefiche&id=<?php echo $ligne ['membre_id'] ; ?>"/>
<input type="hidden" name="id" value="<?php
if(isset($_GET["todo"]) && $_GET["todo"]=="show"){
echo $ligne["membre_id"];
}
?>" />
<input name="todo" type="hidden" id="todo" value="<?php
if(isset($_GET["todo"]) && $_GET["todo"]=="show"){
echo "updt";
}
else{
echo "add";
}
?>" />
</label>
</form>
</div>
A voir également:
- Problème d'update
- Windows update bloqué - Guide
- Winget update - Guide
- Asus live update - Télécharger - Utilitaires
- Windows update windows 10 - Guide
- Wsus offline update - Télécharger - Systèmes d'exploitation