1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
{
$i=1;
$sturct_id = $_POST['sturct_id_'.$i];
$struct_type = $_POST['type_'.$i];
$struct_nom = $_POST['nom_'.$i];
$struct_libelle = $_POST['libelle_'.$i];
$struct_datatype = $_POST['datatype_'.$i];
$sql = "select * from stream_structure_2 where sturct_id='" . $_POST['sturct_id'] . "'";
$Q = dbiQuery($sql);
while ($R = dbiFetch($Q))
{
$i++;
$struct_type = $R[0];
$struct_nom = $R[1];
$struct_libelle = $R[2];
$struct_datatype = $R[3];
$sql = "UPDATE stream_structure_2
set $R(['struct_type_stream'])='" . $struct_type . "', $R(['struct_nom'])='" . $struct_nom . "', $R(['struct_libelle'])='" . $struct_libelle . "', $R(['struct_datatype'])='" . $struct_datatype . "'
where sturct_id='" . $_POST['sturct_id'] . "'" ;
$Q = dbiQuery($sql);
if (!$Q)
$html .= dbiErreurBD($sql);
else
$msg .= sprintf("La modification des documents a bien été modifié");
}
return $msg;
} |
Partager