Voraussetzung ist, das man die ID des zu löschenden Eintrages kennt.
$statement = $pdo->prepare("DELETE FROM feinstaub WHERE id = ?"); $statement->execute(array($id)); if ($statement->execute()) { echo "Der DB-Eintrag wurde erfolgreich gelöscht!"; } else { echo "Bitte den Administrator informieren!"; }PHP Installation
-
Installation PHP 7.3 , Debian Buster 10
Als erstes mal ein
apt update && apt upgrade
danach
apt install php7.3-common php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml php7.3-xsl php7.3-zip apt install php7.3-cli php7.3-curl php7.3-gd php7.3-geoip php7.3-intl php7.3-json php7.3-mbstring apt install php-fpm
Testen
root@rockpro64:~# php -v PHP 7.3.11-1~deb10u1 (cli) (built: Oct 26 2019 14:14:18) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.11-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies
-
Für Debian 11 Bullseye
apt install php7.4-common php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-xsl php7.4-zip apt install php7.4-cli php7.4-curl php7.4-gd php7.4-geoip php7.4-intl php7.4-json php7.4-mbstring php7.4-redis apt install php7.4-bcmath php7.4-gmp php7.4-imagick apt install php-fpm
-
Yubikey als 2FA
PHP • • FrankM -
Wichtige Info
PHP • • FrankM -
Geo Loacation
PHP • • FrankM