to display or not to display
<p>I have a table inwhich I also use php's echo to display data inside td elements. Now I have another condition I need to apply for it as whenever the condition is satisfied the table is displayed or else it is removed/turned off.</p>

<pre><code>&lt;?php if(condition)
{
&lt;table&gt;
&lt;/table&gt;  
}

?&gt;
</code></pre>

<p>I would like to know which way to do this best and could help me not to type in " ' " at the beginning of each element's square bracket throughout the whole table ?</p>

<p>UPDATE</p>

<p>It's very simple to geeks and all the talented coders.</p>

<blockquote>
  <p>if the condition is satisfied then display the table, otherwise don't
  display anything in the view. Please remember also that inside my table I also use <code>echo &gt; $data</code> etc to display table's data elements.</p>
</blockquote>
