Only post PHP code if MySQL row contains data?
<p>Does anyone know the correct way to only echo the whole of the below code only if any data is actually in the "official" MySQL row?</p>

<pre><code>&lt;div class="movietitles"&gt;&lt;img src="/images/35genre.png" /&gt;Official Site: &lt;a href="{$official}"&gt;link&lt;/a&gt;&lt;/div&gt;
</code></pre>
