title: I have this Array ( [0] => 36 ) random numbers from 28 to 58; the i need to get that row['36'] and echo it out
body: <p>I can't figure out how to get the numbers from the array and get the values from my database form the specific row.</p>
  
  <pre><code>&lt;?php
  
  $antal_sections_to_pull = "3";
  $min = "28";
  $max = "58";
  
  $length  = rand(1,$antal_sections_to_pull);  
  
  echo "&lt;br&gt;";
  $a = range($min,$max);   
  shuffle($a);    
  $array = array_slice($a, 0, $length);
  print_r($array);
  </code></pre>
  
  <p>The array gives me this: </p>
  
  <blockquote>
  <pre><code>Array ( [0] =&gt; 55 [1] =&gt; 28 [2] =&gt; 58 ) 
  </code></pre>
  </blockquote>
  
  <pre><code>$sql = "SELECT * FROM indhold WHERE uid='$artid'";
  $result = mysqli_query($conn, $sql); 
  while ($row=mysqli_fetch_row($result)) { 
      echo $row[THE ARRAY NUMBER];
  };  
  </code></pre>
  
  <p>I want to get the value form the row's number from the arrays. How can I do that? </p>