title: mysql_connect not working in XAMPP
body: <p><code>mysql_connect</code> not working in XAMPP but <code>mysqli_connect</code> working fine</p>
  
  <p>What is the problem? I am using below code:</p>
  
  <pre><code>$con = mysql_connect("localhost","root","");
  mysql_select_db("tested",$con);
  </code></pre>
  
  <p>While following code is working fine.</p>
  
  <pre><code>$con = mysqli_connect("localhost","root","");
  mysqli_select_db("tested",$con);
  </code></pre>