php pdo get database name

43

php pdo get database name -

$pdo->query('select database()')->fetchColumn();

Comments

Submit
0 Comments