Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17880
| From | Markus Heinz <markus.heinz@uni-dortmund.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Two PDO login but just one works! :\ |
| Date | 2019-04-12 21:42 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <20190412214250.04ed21a9@computer5> (permalink) |
| References | <q8q8sl$1906$1@gioia.aioe.org> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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