title: Deprecated: mysql_connect()
body: <p>I am getting this warning, but the program still runs correctly.</p>
  
  <p>The MySQL code is showing me a message in PHP:</p>
  
  <blockquote>
    <p>Deprecated: mysql_connect(): The mysql extension is deprecated and
    will be removed in the future: use mysqli or PDO instead in
    C:\xampp\htdocs\task\media\new\connect.inc.php on line 2</p>
  </blockquote>
  
  <p>My <code>connect.inc.php</code> page is</p>
  
  <pre><code>&lt;?php
    $connect = mysql_connect('localhost','root','');
    mysql_select_db('dbname');
  ?&gt;
  </code></pre>
  
  <p>What does this mean and how can I eliminate the message?</p>