<?php # $get[0] == 'humor'; ?>
Czemu każda treść z dowolnej podstrony jest na stronie głównej? Powinna się pokazać kiedy kliknę w link. System podstrony pokazany wyżej.
<?php # $get[0] == 'humor'; ?>
<?php # $get[0] == 'opolaku'; ?> //dowcipy <?php # $get[0] == 'ojasiu'; ?> //dowcipy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Polskie dowcipy i nie tylko !</title> <link href="style.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body background="images/background.png" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div id="header-wrapper"> <div id="header"> <div id="logo"> <h1><a href="index.php">...</a></h1> </div> </div> </div> <div id="page"> <div id="page-bgtop"> <div id="page-bgbtm"> <div id="content"> <?php ?> // tu dowcipy <?php ?> //tu też <?php ?> //i tu <?php ?> //a tu, nie? no jasne, że tak ! <?php ?> //a tu? <?php ?> //tak <div class="post"> <h2 class="title">Dowcipy na lato !</a></h2> <p class="meta"></a>data</p> <div style="clear: both;"> </div> //tekst </div> <h2 class="title"></a></h2> <p class="meta"></a></p> <div style="clear: both;"> </div> <div class="entry"> </div> </div> <div style="clear: both;"> </div> </div> <div id="sidebar"> <ul> <li> <div style="clear: both;"> </div> </li> <li> <h2>Nawigacja</h2> <ul> <li><a href="index.php">Home</a></li> <li><a href="index.php?Muza"">Muza</a></li> <li><a href="index.php?Fotki">Fotki</a></li> <li><a href="index.php?GG"">GG</a></li> <li><a href="index.php?Upload"">Upload</a></li> <li><a href="index.php?Forum"">Forum</a></li> </ul> </li> </ul> </div> <div style="clear: both;"> </div> </div> </div> </div> </div> </body> </html>
}
<?php { <table cellspacing= "3" class = "window"> <tr><td> <?php ?> </tr></td> <tr><td> <?php ?> </tr></td> </table> } ?>
<?php { <a href="index.php?name">Wygeneruj imię.</a> } ?>
<div id="page"> <div id="page-bgtop"> <div id="page-bgbtm"> <div id="content"> <?php { <img src = "http://freecode.pl/motohandel/wp-content/uploads/2008/11/strona_w_budowie7.gif" alt = "Strona w budowie !" /> } ?> <?php { <table cellspacing= "3" class = "window"> <tr><td> <?php ?> </tr></td> <tr><td> <?php ?> </tr></td> </table> } ?> <div class="post"> <h2 class="title">Oficjalne otwarcie strony !</a></h2> ...
<?php if (7 == 7): ?>
abc
<?php endif ?>
<?php ?> <h3>strpos() must have returned non-false</h3> <p>You are using Internet Explorer</p> <?php } else { ?> <h3>strpos() must have returned false</h3> <p>You are not using Internet Explorer</p> <?php } ?>
<?php // output the answer by escaping if ($true_or_false) { ?> <p>The value of $true_or_false is true.</p> <?php } else { ?> <p>The value of $true_or_false is false.</p> <?php } // use echo to do the same thing - more effecient and easier to read in my opinion if ($true_or_false) { } else { } // use ? : operators on entire string echo ($true_or_false) ? '<p>The value of $true_or_false is true.</p>' : '<p>The value of $true_or_false is false.</p>'; // use ? : operators only on the pertinent bit, to save space ?>
<p>To zostanie zignorowane.</p> <p>To również zostanie zignorowane.</p>