title: Notice Undefine Offset PHP
body: <p>I'm trying to redirect a page if the admin changes the page to not visible, by changing the visible value to zero, what is wrong with my code, i keep getting the error    </p>
  
  <pre><code>&lt;?php
   $result = mysqli_query($con,"SELECT VISIBLE FROM  menu WHERE id=0");
   if($row = mysqli_fetch_array($result))
    {
   header('Location: ./unavailable.php? error=pagenotavaialbe');
   }
    else
   ?&gt;
  </code></pre>