no html o/p
Posted: Mon Aug 10, 2009 2:47 pm
Why the following code does not give any html o/p ???
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Script7</title>
</head>
<body>
<?php
if( 1+2 == 3)
print "this is true<br>";
$a = "yes";
if($a == "yes") {
print "$a is equal to yes<br>";
$a="no";
}
$a=1;
$b=6;
$c="y";
if(($a==$b)||($b+$a==7 && &c=="y") || 1) {
print "example 3 is true<br>";
}
if($a=$b) {
print "example 4 is true<br>";
}
if($a==$b) {
print "example 5 is true<br>";
}
?>
</body>
</html>