title: mysqli_select_db() expects exactly 2 parameters
body: <p>Getting the errors:</p>
  <blockquote>
  <p>Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:\Users\root\Desktop\WebServer\htdocs\test.php on line 9</p>
  <p>Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\Users\root\Desktop\WebServer\htdocs\test.php on line 13</p>
  <p>Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in C:\Users\root\Desktop\WebServer\htdocs\test.php on line 39</p>
  </blockquote>
  <p>I can't notice the problem, kind of new to this, can anyone see the problem?</p>
  <p>Any help is very appreciated!</p>
  <pre><code>&lt;?php
  
  
  //make connection
  mysqli_connect('localhost', 'root', '');
  
  
  //select db
  mysqli_select_db('altislife-dev');
  
  $sql=&quot;SELECT * FROM players&quot;;
  
  $records=mysqli_query($sql);
  
  ?&gt;
  
  &lt;html&gt;
  
      &lt;head&gt;
  
          &lt;title&gt;Data&lt;/title&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
  
          &lt;table width=&quot;600&quot; border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot;&gt;
          &lt;tr&gt;
          &lt;th&gt;uid&lt;/th&gt;
          &lt;th&gt;name&lt;/th&gt;
          &lt;th&gt;aliases&lt;/th&gt;
          &lt;th&gt;playerid&lt;/th&gt;
          &lt;th&gt;cash&lt;/th&gt;
          &lt;th&gt;bankacc&lt;/th&gt;
          &lt;th&gt;coplevel&lt;/th&gt;
          &lt;tr&gt;
  
          &lt;?php
          while($players=mysqli_fetch_assoc($records)) {
  
              echo &quot;&lt;tr&gt;&quot;;
              echo &quot;&lt;td&gt;&quot;.$players['uid'].&quot;&lt;/td&gt;&quot;;
              echo &quot;&lt;td&gt;&quot;.$players['name'].&quot;&lt;/td&gt;&quot;;
              echo &quot;&lt;td&gt;&quot;.$players['aliases'].&quot;&lt;/td&gt;&quot;;
              echo &quot;&lt;td&gt;&quot;.$players['playerid'].&quot;&lt;/td&gt;&quot;;
              echo &quot;&lt;td&gt;&quot;.$players['cash'].&quot;&lt;/td&gt;&quot;;
              echo &quot;&lt;td&gt;&quot;.$players['bankacc'].&quot;&lt;/td&gt;&quot;;
              echo &quot;&lt;td&gt;&quot;.$players['coplevel'].&quot;&lt;/td&gt;&quot;;
              echo &quot;&lt;/tr&gt;&quot;;
          }
  
          ?&gt;
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>