note 129967 added to pdo.exec

From: Date: Fri, 10 Jan 2025 13:29:37 +0000
Subject: note 129967 added to pdo.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-221780@lists.php.net to get a copy of this message
<?php $servername = 'mysql'; $dbname = 'trackstar'; $username = 'root'; // Passe den Benutzernamen an $password = 'htlkrems'; 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); } catch(PDOException $e) { echo "Connection failed: " . $e->getMessage(); } ?> ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 193.170.70.27) ---- Manual Page -- https://php.net/manual/en/pdo.exec.php Edit -- https://main.php.net/note/edit/129967 Del: integrated -- https://main.php.net/note/delete/129967/integrated Del: useless -- https://main.php.net/note/delete/129967/useless Del: bad code -- https://main.php.net/note/delete/129967/bad+code Del: spam -- https://main.php.net/note/delete/129967/spam Del: non-english -- https://main.php.net/note/delete/129967/non-english Del: in docs -- https://main.php.net/note/delete/129967/in+docs Del: other reasons-- https://main.php.net/note/delete/129967 Reject -- https://main.php.net/note/reject/129967 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221780) next »