note 124292 added to ref.pdo-mysql.connection

From: Date: Sun, 13 Oct 2019 16:07:09 +0000
Subject: note 124292 added to ref.pdo-mysql.connection
Groups: php.notes 
Request: Send a blank email to php-notes+get-212648@lists.php.net to get a copy of this message
here is the example i prefer myself, in my opinion, this is almost always "the correct way" to do it: <?php $db = new PDO('mysql:host=localhost;dbname=testdb;charset=utf8mb4', 'username', 'password', array( PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION )); ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.168 (proxied: 46.230.128.250) ---- Manual Page -- http://php.net/manual/en/ref.pdo-mysql.connection.php Edit -- https://master.php.net/note/edit/124292 Del: integrated -- https://master.php.net/note/delete/124292/integrated Del: useless -- https://master.php.net/note/delete/124292/useless Del: bad code -- https://master.php.net/note/delete/124292/bad+code Del: spam -- https://master.php.net/note/delete/124292/spam Del: non-english -- https://master.php.net/note/delete/124292/non-english Del: in docs -- https://master.php.net/note/delete/124292/in+docs Del: other reasons-- https://master.php.net/note/delete/124292 Reject -- https://master.php.net/note/reject/124292 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212648) next »