How to check field is empty after fetching from database?
<p>I am storing images in a column, I just want to hide img tag when the image field is empty in  a table.</p>

<pre><code>$imgResult= explode('**',$resultArray['mediaGallery']);
if(empty($imgResult)===true){
    echo "&lt;script type=\"text/javascript\"&gt;
          $(document).ready(function(e) {
              $('.display').css('display','none');
          });
          &lt;/script&gt;";
}
</code></pre>
