title: How to fix: Warning: mysqli_query() expects parameter 1 to be mysqli?
body: <p>I'm trying to install Arfooo on my host. </p>
  
  <p>First I got a warning about:</p>
  
  <pre><code>Deprecated: mysql_connect()
  </code></pre>
  
  <p>After fixing that, now I get this error:</p>
  
  <pre><code>function executeQueryWithPrefix($sql, $tablesPrefix)
  {
      $sql = str_replace("CREATE TABLE `", "CREATE TABLE `" . $tablesPrefix, $sql);
      $sql = str_replace("INTO `", "INTO `" . $tablesPrefix, $sql);
  
      //echo $sql."&lt;br&gt;";
  
      return mysqli_query($sql);
  }
  
  function dbConnect($server, $user, $pass, $dbName)
  {
  
      /* install database with prefixed tables */
  
      mysqli_connect($DB_HOST, $user, $pass, $dbName);
      //mysql_connect($server, $user, $pass) or die('could not connect to mysql');;
  
      mysqli_query($dbName, 'CREATE TEMPORARY TABLE `table`');
      //mysql_query('create database IF NOT EXISTS ' . $dbName);
  
      mysqli_select_db($dbName) or die('could not select database');
  }
  </code></pre>
  
  <p>Please help!
  Thanks!</p>