title: Parse error: syntax error, unexpected T_STRING in C:\...\GuestbookPHP.php on line 43
body: <p>I couldnt figure out why I am getting this error in my code. Can anyone help me figure this out please? </p>
  
  <p>Just to let you know, my line 43 is </p>
  
  <blockquote>
    <p>INSERT INTO commentList</p>
  </blockquote>
  
  <pre><code>    &lt;?php
  
  $dbServer='localhost';
  $dbUser='root';
  $dbPass='password';
  $dbName='Guestbook';
  
  mysql_connect("$dbServer", "$dbUser", "$dbPass") or die(mysql_error());
  mysql_select_db("$dbName") or die(mysql_error());
  
  
  mysql_query("CREATE TABLE commentLlist(
      id INT NOT NULL AUTO_INCREMENT, 
        PRIMARY KEY(id),
          name VARCHAR(30), 
          comment VARCHAR(160))")
      or die(mysql_error());  
  
  
    // Retrieving data from the url
    $name = $_GET['name'];
    $comment = $_GET['comment'];
  
  
    if ( $name != null &amp;&amp; $comment != null ) {
          INSERT INTO commentList
          VALUES("$name", "$comment");
  
    } else if ($name == null) {
          INSERT INTO commentList 
          VALUES("Anonymous", "$comment");
  
    } else if ($comment == null) {
            INSERT INTO commentList 
            VALUES("$name", " has nothing to say!");
  
  
  
      $display_string = "&lt;li&gt;";
      $display_string .= "$name";
      $display_string .= " says";
      $display_string .= "$comment";
      $display_string .= "&lt;li&gt;";
  
  
      echo $display_string;
  
  
  ?&gt;
  </code></pre>