title: hide-show functionality using css
body: <p>I am working on hide show functionality using JavaScript</p>
  
  <p>but it occurring error on console for onclick function</p>
  
  <p>I am not getting why this error occurring.</p>
  
  <p><strong>PHP CODE</strong></p>
  
  <pre><code>&lt;?php
  
  $page = '0';
  
  $output.='&lt;div id="my_section" style="display:none;"&gt;This is my section&lt;/div&gt;';
  
  echo $output;
  
  ?&gt;
  </code></pre>
  
  <p>I page-id is grater than 0 need to display block of div my_section</p>
  
  <p>e.g.</p>
  
  <pre><code>$output.='&lt;div id="my_section" if($page&gt;\'0\') { style="display:none;" } else { style="display:block;" }&gt;This is my section&lt;/div&gt;';
  </code></pre>
  
  <p>i am not getting how to add this condition in php please help</p>