title: Count length of Array php
body: <p>I have to get the length of the whole column.I am doing something like this :</p>
  
  <pre><code>$allThumbnailName="Select sp_thumbnailName from stitchedproduct";
  
  if($connection === false) 
  {
      echo "Error in connection mysql_error()";
  }
  
  $ATName = mysqli_query($connection,$allThumbnailName) or die(mysqli_error($connection));
  
  if (!$ATName) echo "hello";
  
  $ResultAllThumbnailName = mysqli_fetch_array($ATName);
  $LengthOFarrayImages = count($ResultAllThumbnailName);
  
  echo $LengthOFarrayImages;
  </code></pre>
  
  <p>The code is returning me length 2 but i have 5 elements in my column .</p>