title: Parse error: syntax error, unexpected '{' in C:\xmpp\htdocs\e-kartbz\includes\config.php on line 4
body: <p>am completely new to coding, and i got this error </p>
  
  <p><strong>Parse error: syntax error, unexpected '{' in C:\xmpp\htdocs\e-kartbz\includes\config.php on line 4</strong></p>
  
  <p>the code i wrote is:</p>
  
  <pre><code>&lt;?php
  //connect to database
  mysql_connect{"localhost", "root", ""} or die{mysql_error{}};
  mysql_select_db{"e-kartbz"} or die{mysql_error{}};
  echo "working";
  ?&gt;
  </code></pre>
  
  <p>i wrote it exactly as the instructor did in the tutorial, and it worked perfectly for him. can you help me please, thank you.</p>