0

If I connect to a mysql database using the following code:

$dbh = new PDO("mysql:host=$host", $root, $root_password);

As you can see the code doesn't provide the database name so I can create one, but can I make a connection to the created database later in the code?

Moises Zermeño
  • 763
  • 1
  • 6
  • 18

0 Answers0