What are some recommended web hosting providers for PHP and MySQL with ASP support?

When looking for a web hosting provider that supports PHP and MySQL with ASP support, it is important to consider factors such as reliability, performance, customer support, and pricing. Some recommended web hosting providers that meet these criteria include Bluehost, SiteGround, and A2 Hosting.

// Example PHP code snippet for connecting to a MySQL database using PDO

$host = 'localhost';
$dbname = 'database_name';
$username = 'username';
$password = 'password';

try {
    $pdo = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    echo "Connected to the database successfully";
} catch (PDOException $e) {
    die("Error: " . $e->getMessage());
}