title: Warning: mysqli_query() expects at least 2 parameters, 1 given. What?
body: <p>I made a PHP page that is supposed to select two names from a database and displays them.</p>
  <p>It just says:</p>
  <blockquote>
  <p>Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/tdoylex1/public_html/dorkhub/index.php on line 4</p>
  <p>Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/tdoylex1/public_html/dorkhub/index.php on line 8</p>
  </blockquote>
  <p>My code is:</p>
  <pre><code>&lt;?php mysqli_connect(localhost,tdoylex1_dork,dorkk,tdoylex1_dork);
  $name1 = mysqli_query(&quot;SELECT name1 FROM users
  ORDER BY RAND()
  LIMIT 1&quot;);
  
  $name2 = mysqli_query(&quot;SELECT name FROM users
  ORDER BY RAND()
  LIMIT 1&quot;);
  
  ?&gt;
  
  &lt;title&gt;DorkHub. The online name-rating website.&lt;/title&gt;
  &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot;&gt;
  &lt;body bgcolor='EAEAEA'&gt;
  &lt;center&gt;
  &lt;div id='TITLE'&gt;
      &lt;h2&gt;DorkHub. The online name-rating website.&lt;/h2&gt;
  &lt;/div&gt;
      &lt;p&gt;
      &lt;br&gt;
      &lt;h3&gt;&lt;?php echo $name1; ?&gt;&lt;/h3&gt;&lt;h4&gt; against &lt;/h4&gt;&lt;h3&gt;&lt;?php echo $name1; ?&gt;&lt;/h3&gt;
      &lt;br&gt;&lt;br&gt;
      &lt;h2 style='font-family:Arial, Helvetica, sans-serif;'&gt;Who's sounds the dorkiest?&lt;/h2&gt;
      &lt;br&gt;&lt;br&gt;
      &lt;div id='vote'&gt;
      &lt;h3 id='done' style='margin-right: 10px'&gt;VOTE FOR FIRST&lt;/h3&gt;&lt;h3 id='done'&gt;VOTE FOR LAST&lt;/h3&gt;
  </code></pre>