Uploadfunktion Sowie Bemerkungen und Rezepte und CSS hinzugefügt.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class WertUpdate {
|
||||
public function __construct($feld, $id_mitglied) {
|
||||
@include ("db.inc.php");
|
||||
$sql = "SELECT $feld FROM mitglieder " . "WHERE id_mitglied = $id_mitglied";
|
||||
if ($stmt = $pdo->prepare ( $sql1 )) {
|
||||
$stmt->execute ();
|
||||
|
||||
while ($row = $stmt->fetch ()) {
|
||||
$wert = $row [$feld];
|
||||
}
|
||||
}
|
||||
|
||||
$wert += 1;
|
||||
|
||||
$sql2 = "UPDATE mitglieder SET $feld = $wert " . "WHERE id_mitglied = $id_mitglied";
|
||||
if ($stmt = $pdo->prepare ( $sql2 )) {
|
||||
$stmt->execute ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user