title: How to fix an unexpected T-variable error
body: <p>I am getting a syntax error,</p>
  <blockquote>
  <p>unexpected '$db' (T_VARIABLE) in /home/u606328786/public_html/qoute/php/connect.php on line 10</p>
  </blockquote>
  <p>Here is the code:</p>
  <pre><code>&lt;?php
  
  // Make a MySQL Connection
  $host=&quot;&quot;;
  $user=&quot;&quot;;
  $password=&quot;&quot;;
  $db = &quot;&quot;;
  $link = mysqli_connect($host, $user, $password)
  $db = new PDO('mysql:host=mysql.nazuka.net;dbname=;charset=utf8';dbsuser=;dbpass=);
  </code></pre>
  <p>Based on my research the mysql_* functions no longer works and suggest trying the mysqli_* or PDO function.  I used the PDO function, but I am still getting the syntax error.</p>