title: Call to undefined function, mysql_connect(), in PHP connection file
body: <p>I had registered my website with a domain and hosting. It consist of a database. I have written the connection PHP file as given below. It doesn't work and is displaying this error:</p>
  
  <blockquote>
    <p>Call to undefined function mysql_connect().</p>
  </blockquote>
  
  <p>I create the database in <a href="https://en.wikipedia.org/wiki/CPanel" rel="nofollow">cPanel</a>:</p>
  
  <pre><code>&lt;?php
      mysql_connect('localhost', 'xxx', 'xxx');
      mysql_select_db('xxx');
  ?&gt;
  </code></pre>