XAMPP Fatal error: Call to undefined function mysql_connect()
<p>I hit this error when running a PHP script on XAMPP, in Windows. Does anyone know how solved it?</p>

<blockquote>
  <p>Fatal error: Call to undefined function mysql_connect() in
  C:\xampp\htdocs\netbanking\dbconnection.php on line 2.</p>
</blockquote>