Code-Samples/php/Php-selectdb.php Using MySQLi for selecting Database connect_error) { die("Connection not established: " . $connection->connect_error); } // Selecting Database $query = "Use Hospital"; if ($connection->query($query) === TRUE) { echo "database selection successful"; } else { echo "Unable to select database " . $connection->error; } $connection->close(); ?>