title: php mysql error Undefined offset: 0
body: <p>I am getting  this error message " Undefined offset: 0 " . what is the reason and How can it be solved??
  here is my code:</p>
  
  <pre><code>&lt;?php            
      $rows= mysqli_query ( $con,"SELECT COUNT(Mobile) AS count  FROM data Where Blood = '$bloodGroup'" );
      $count = mysqli_fetch_assoc( $rows  ) ;
      $count = $count[0]['count']; 
  ?&gt;
  </code></pre>