if function in php ( combine php and html)

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Post Reply
User avatar
macek
php-forum Active User
php-forum Active User
Posts: 277
Joined: Wed Aug 25, 2010 10:42 am
Contact:

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

Post by macek » Sun Sep 19, 2010 9:15 pm

Code: Select all

<?php

if(Statement) {

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

} else {

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

}

?>

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests