note 129304 added to pdo.construct

From: Date: Sun, 03 Mar 2024 21:59:30 +0000
Subject: note 129304 added to pdo.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-221221@lists.php.net to get a copy of this message
Other way to do it: $server= "localhost"; $user= "root"; $clave= ""; try { $conexion = new PDO("mysql:host=$server", $user, $clave); $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $exception) { echo "ERROR: ", $exception->getMessage(); } ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.131 (proxied: 83.60.29.95) ---- Manual Page -- https://php.net/manual/en/pdo.construct.php Edit -- https://main.php.net/note/edit/129304 Del: integrated -- https://main.php.net/note/delete/129304/integrated Del: useless -- https://main.php.net/note/delete/129304/useless Del: bad code -- https://main.php.net/note/delete/129304/bad+code Del: spam -- https://main.php.net/note/delete/129304/spam Del: non-english -- https://main.php.net/note/delete/129304/non-english Del: in docs -- https://main.php.net/note/delete/129304/in+docs Del: other reasons-- https://main.php.net/note/delete/129304 Reject -- https://main.php.net/note/reject/129304 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221221) next »