"; } } if ($_SESSION['login'] !='true') // if ($_SESSION['login'] =='true') { echo "
"; }else{ //---------------------------------------------------Name und Teiler------------------------ $bild=1; $ok=0; if ($_POST['submit'] =='speichern') { $ok=1; $bild = $_POST['bild']; if ($bild==1){$bild=0;}else{$bild=1;} $stmt = $pdo->prepare("UPDATE seliste SET teiler = :teil, klar = :klar, digital = :digi WHERE ID = :ind"); $stmt->bindParam(':teil', $teil); $stmt->bindParam(':klar', $klar); $stmt->bindParam(':ind', $ind); $stmt->bindParam(':digi', $digi); foreach ($_POST['name'] as $item) { $klar= $item['nam']; $teil = $item['teil']; $digi = $item['digital']; $ind = $item['id']; if ($teil==0){$teil=2.22;} if (empty($teil)) {$teil=1;} $stmt->execute(); } } /* foreach ($_POST['name'] as $item) { $klar= $item['nam']; $teil = $item['teil']; $digi = $item['digital']; $ind = $item['id']; echo "$klar - $ind
";
?>
";?>
";
echo "
";
}
if (($ok==1)and($bild==0)){
echo "
";
}
echo "";
?>