title: How to check if mysql entry is empty in PhP?
body: <p>here is the description variable I am echoing from my table:</p>
  
  <pre><code>$description = mysql_result($result,$i,"description");
  </code></pre>
  
  <p>sometimes the $i'th record is empty and doesn't have any data in it/no description.</p>
  
  <p>What I want to do is echo "No description available" for records that are empty</p>
  
  <pre><code>if (isset($description)){ echo "No description available";}
  else{ echo $desctipion;}
  </code></pre>
  
  <p>My attempt doesn't work though as it then echoes No description available for every record even those which aren't empty.</p>
  
  <p>What is the answer?</p>