Hide div when no mysql value retrieved
<p>I found several solutions for hiding divs when they are empty but not in connection with a mysql retrieved value. </p>

<pre><code>&lt;button class="platform_category" id="platform_', $platform['platform_id'],'_category"&gt;&lt;a href="', $platform['platform_url'],'" target="_tab"&gt;', $platform['platform_category1'],'&lt;/a&gt;&lt;/button&gt;
</code></pre>

<p>Jquery does not hide div when there is no data in mysql-row because it  thinks $platform['platform_category1'] is a value even though that is only the php-code to retrieve the mysql value in case there is one. </p>

<p>For the hiding jquery code I am using this:(if I replace the == with != it hides)</p>

<pre><code>    $(function() {
    $('.platform_category').each(function() {
        if ($(this).html() == "") {
             $(this).hide();
       }
    }); 
});
</code></pre>
