title: Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\
body: <p>I am trying to do a connection with XAMPP and sql server. but when ever I try to enter data or connect to the database, I get this error.</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Call to undefined function
    mysql_connect() in C:\xampp\htdocs\Maxipak\process.php:3 Stack trace:
     #0 {main} thrown in C:\xampp\htdocs\Maxipak\process.php on line 3</p>
  </blockquote>
  
  <p>My code on line 3 looks like this:</p>
  
  <pre><code>$conn = mysql_connect ("localhost","root","");
  </code></pre>