Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17880

Re: Two PDO login but just one works! :\

Path csiph.com!aioe.org!.POSTED.B2rhR2Y2ObYm40VcvpdIbg.user.gioia.aioe.org!not-for-mail
From Markus Heinz <markus.heinz@uni-dortmund.de>
Newsgroups comp.lang.php
Subject Re: Two PDO login but just one works! :\
Date Fri, 12 Apr 2019 21:42:50 +0200
Organization Aioe.org NNTP Server
Lines 34
Message-ID <20190412214250.04ed21a9@computer5> (permalink)
References <q8q8sl$1906$1@gioia.aioe.org>
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

Show key headers only | View raw


Hello.

On Fri, 12 Apr 2019 16:55:18 +0200
^Bart <gabriele1NOSPAM@hotmail.com> wrote:

> I'm testing on a local server new php features, this PDO is ok:
> 
> <?php
> $host = 'localhost';
> $db   = 'mydb';
> $user = 'mydb_user';
> $pass = '87654321';
> $charset = 'latin1';

[...]

> This below doesn't work :\
> 
> <?php
> 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

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Two PDO login but just one works! :\ ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-04-12 16:55 +0200
  Re: Two PDO login but just one works! :\ Luuk <luuk@invalid.lan> - 2019-04-12 19:04 +0200
    Re: Two PDO login but just one works! :\ ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-04-12 21:24 +0200
  Re: Two PDO login but just one works! :\ Markus Heinz <markus.heinz@uni-dortmund.de> - 2019-04-12 21:42 +0200
    Re: Two PDO login but just one works! :\ ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-04-13 11:55 +0200

csiph-web