note 130101 added to language.errors
| From: | Anonymous | Date: | Fri, 28 Feb 2025 11:55:22 +0000 |
| Subject: | note 130101 added to language.errors | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221927@lists.php.net to get a copy of this message | ||
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous">
<title>Document</title>
</head>
<body>
<?php
// Datenbank verbindung
$servername = "mysql";
$username = "root";
$password = "htlkrems";
$dbname = "classicmodels";
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username,
$password);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "Connected successfully";
} catch(PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}
?>
<?php
// Delete
if(isset($_GET['del'])){
$id = $_GET['del'];
$stmt = $conn->prepare("DELETE FROM customers WHERE customerNumber = :id");
$stmt->bindParam('id', $id);
$stmt->execute();
if ($stmt->rowCount () == 1) {
// check ob das Statement eine Zeile betroffen hat -⺠Message in die Variable
speichern
$msg = "officeCode (($id}) deleted";
}
}
$sql = "SELECT * FROM customers";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 193.170.70.27)
----
Manual Page -- https://php.net/manual/en/language.errors.php
Edit -- https://main.php.net/note/edit/130101
Del: integrated -- https://main.php.net/note/delete/130101/integrated
Del: useless -- https://main.php.net/note/delete/130101/useless
Del: bad code -- https://main.php.net/note/delete/130101/bad+code
Del: spam -- https://main.php.net/note/delete/130101/spam
Del: non-english -- https://main.php.net/note/delete/130101/non-english
Del: in docs -- https://main.php.net/note/delete/130101/in+docs
Del: other reasons-- https://main.php.net/note/delete/130101
Reject -- https://main.php.net/note/reject/130101
Search -- https://main.php.net/manage/user-notes.php