Page 1 of 1

Re: if function in php ( combine php and html)

Posted: Sun Sep 19, 2010 9:15 pm
by macek

Code: Select all

<?php

if(Statement) {

  echo 'SOME <b>HTML</b>';

} else {

  echo 'ANY OTHER </b>HTML</b>';

}

?>