title: PHP else condition not working
body: <p>I am stuck with some code.</p>
  
  <p>It's quite simple, I have the following code:</p>
  
  <pre><code> if ($somevariable == 1) {
     echo 'Do Something here';
  } else {
     echo 'Do Something Else';                
  } 
  </code></pre>
  
  <p>$somevariable is returning either 1 or nothing at all.</p>
  
  <p>When the first condition is true ...when it's 1 it's working as it should ... </p>
  
  <p>BUT the else condition does not return "Do Something Else" when nothing is return or it's empty.</p>
  
  <p>Shouldn't ELSE mean any other condition?</p>
  
  <p>How can I sort this problem out?</p>
  
  <hr>
  
  <pre><code>UPDATE
  </code></pre>
  
  <hr>
  
  <p>Actual Code:</p>
  
  <pre><code>$result2 = mysql_query("SELECT * FROM `follows` WHERE `user_id` = '$session_user_id' AND `venue_id` = '$venue_id'");
  
  while ($row2 = mysql_fetch_assoc($result2))
  {
  $following = $row2['following'];
  
  if ($following == 1) {
  echo 'do something';
  } else {
  
  echo 'do something else';
  
  }
  
  
  
  }
  </code></pre>
  
  <p>Hope this helps</p>