title: XAMPP: mySQL is not connecting
body: <p>Anyone knows what is wrong with my config code?
  I'm just a beginner in PHP so here's my error</p>
  <blockquote>
  <p><br /> <b>Fatal error</b>:  Uncaught Error: Call to undefined
  function mysql_connect() in C:\XAMPP\htdocs\gas_php\config.php:10</p>
  <p>Stack trace:</p>
  <p>0 - C:\XAMPP\htdocs\gas_php\checkbanned.php(7): include()</p>
  <p>1 - {main}   thrown in C:\XAMPP\htdocs\gas_php\config.ph</p>
  </blockquote>
  <p>Worked all night long to come up with this:</p>
  <pre><code>&lt;?php
  
  $db_host        =    'localhost';
  
  $db_user         =     'root';
  
  $db_password     =     '';
  $db_name        =    'accounts';  
  
  $connect     =     mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
  $select     =     mysql_select_db($db_name) or die(mysql_error());  
  mysql_query(&quot;set character_set_server='utf8'&quot;);
  mysql_query(&quot;set names 'utf8'&quot;);
  ?&gt;
  </code></pre>