-1

I get this error. I am 11 years old and learning. Appreciate your help

This is my code.Thank you in advance.

<meta charset="utf-8">
<?php
$dsn = "xxxxxx_xxxx"
$user = "xxxxxx_xxxxxx"
$password = "xxxxxx"
try {
    $dbh = new PDO($dsn, $user, $password, 
           array(PDO::MYSQL_ATTR_SSL_KEY  => '/etc/mysql/client-key.pem',
                 PDO::MYSQL_ATTR_SSL_CERT => '/etc/mysql/client-cert.pem',
                 PDO::MYSQL_ATTR_SSL_CA   => '/etc/mysql/ca-cert.pem'));

    echo "Connestion established";
} 
catch (PDOException $e) {
    echo 'Connection failed: ' . $e->getMessage();
}

?>
Jixone
  • 190
  • 11
Mert2006
  • 11
  • 3

1 Answers1

0

These three lines are missing semicolons at the end:

$dsn = "xxxxxx_xxxx";
$user = "xxxxxx_xxxxxx";
$password = "xxxxxx";
Brian Gottier
  • 4,522
  • 3
  • 21
  • 37
  • I try semicolons but this don't change anything – Mert2006 Aug 20 '17 at 12:16
  • @Mert2006, It should have moved you past the error you were getting in the subject of your post, probably to another error. Even though I did answer your question correctly (and you don't know it) I got downvoted for this answer, so I'm done. – Brian Gottier Aug 20 '17 at 14:59