PHP - H4 element condition

0 votes
68 views
added Jun 11, 2021 in PHP by lcjr First Warrant Officer (9,190 points)
<h4>
<?php
  if($nid == 1860554) {
    echo '<img src="/images/logo.png"/>';
  }
  else { 
     echo $field_slogan;
  }
?>
</h4>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...