title: Printing a PHP Array from MySQL table
body: <p>I am trying to print all the items in a row from a particular table from a mysql database.</p>
  
  <p>Here is the out put I am getting (which is not what I want):</p>
  
  <pre><code>**mysqli_result Object ( [current_field] =&gt; 0 [field_count] =&gt; 3 [lengths] =&gt; [num_rows] =&gt; 28 [type] =&gt; 0 ) Array ( )**
  </code></pre>
  
  <p>Here is how I am doing it:</p>
  
  <pre><code>&lt;?php
      $connect = mysqli_connect("localhost", "root", "root");
      mysqli_select_db($connect, "TrackTool");
  
      $fetch1 = mysqli_query($connect, "SELECT * FROM SalesForceActions");
  
      // set array
      $array = array();
  
      // look through query
      while($row = mysql_query($fetch1)){
  
          // add each row returned into an array
          $array[] = $row;
  
      }
  
      print_r($fetch1);
      print_r($array);
  
      mysqli_close($connect);
  
  ?&gt;
  </code></pre>
  
  <p><strong>What am I doing wrong?</strong></p>