title: MySQL error: Call to undefined function mysql_connect() [file] on line 4
body: <p>I keep getting this error, and i do not know much about PHP, but I would like to get started with it and with MySQL, but this error stops me from continueing with my learning!</p>
  
  <blockquote>
    <p>Info <br> Server Program: Niginx<br> Installed Extras: PHP [5.6.4] | MySQL <br></p>
  </blockquote>
  
  <p>Files:</p>
  
  <pre><code>&lt;?php include "includes/config.php"; ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" style+"text/css" href="css/main.css" /&gt;
  &lt;script type="text/javascript" language="javascript" src="javascript/main.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>config.php:</p>
  
  <pre><code>&lt;?php
  
  //connect to database
  mysql_connect("localhost", "root", "") or die(mysql_error());
  mysql_select_db("chat") or die(mysql_error());
  
  echo "Working";
  ?&gt;
  </code></pre>