Path: csiph.com!aioe.org!.POSTED.B2rhR2Y2ObYm40VcvpdIbg.user.gioia.aioe.org!not-for-mail From: Markus Heinz Newsgroups: comp.lang.php Subject: =?UTF-8?B?UmU6IFR3byBQRE8gbG9naW4gYnV0IGp1c3Qgb25lIHdvcmtzISA6XA==?= Date: Fri, 12 Apr 2019 21:42:50 +0200 Organization: Aioe.org NNTP Server Lines: 34 Message-ID: <20190412214250.04ed21a9@computer5> References: NNTP-Posting-Host: B2rhR2Y2ObYm40VcvpdIbg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Newsreader: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com comp.lang.php:17880 Hello. On Fri, 12 Apr 2019 16:55:18 +0200 ^Bart wrote: > I'm testing on a local server new php features, this PDO is ok: > > $host = 'localhost'; > $db = 'mydb'; > $user = 'mydb_user'; > $pass = '87654321'; > $charset = 'latin1'; [...] > This below doesn't work :\ > > session_start(); > /* DATABASE CONFIGURATION */ > define('DB_SERVER', 'localhost'); > define('DB_USERNAME', 'mydb'); > define('DB_PASSWORD', '87654321'); > define('DB_DATABASE', 'mydb_user'); [...] In the second example database username and database name are exchanged. Regards Markus