Korzystałem z tego oto tutaj zamieszczonego kursu http://webmade.org/kursy-online/kurs-php.php
Plik head.php
<?php function render_head() { echo"<table cellspacing='0' cellpadding='0' width='750' border='0'> <tr> <td width='100%' height='150'> <table cellspacing='0' cellpadding='0' border='0'> <tr> <td width='750' height='150' style='background: url(gfx/logos.jpg) no-repeat; border: 1px solid #000000;'> <table width='100%' cellspacing='0' cellpadding='0'border='0'> <tr> <td style='text-align: center; color: #ffffff; font-size: 20'> </td> </tr> </td> </tr> </table> </td> </tr>"; } ?>
index.php
<HTML> <HEAD> <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2"> <LINK REL="stylesheet" HREF="styles.css" TYPE="text/css"> </HEAD> <BODY> <body bgcolor="#777979"> <div align="center"> <?php include("head.php") render_head() ?> <tr> </tr> <tr> <td width="100%"> <table cellspacing="0" cellpadding="0" width="750" border="0"> <tr> <td valign="top" width="150"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td width="100%" height="30" background="gfx/tlos.jpg" style="color: #ffffff; border: 1px solid #000000"> Menu </td> </tr> <tr> <td height="200" width="100%" style="vertical-align: top; padding: 5px; background: #e1e1e1; border: 1px solid #000000; border-top: 0px solid #000000;"> <a href="index.html">Home</a><br> <a href="galeria.htm">Galeria</a><br> <a href="credits.htm">Zasługi</a><br> </td> </tr> </table> <table height="20" cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td width="100%"> </td> </tr> </table> <td width="10"></td> <td valign="top" width="590"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td width="100%" height="30" background="gfx/tlos.jpg" style="color: #ffffff; border: 1px solid #000000;"> Witajcie! </td> </tr> <tr> <td height="200" width="100%" style="vertical-align: top; padding: 5px; border: 1px solid #000000; border-top: 0px solid #000000; background: #e1e1e1;"> Witam Dżemiastych i tych nieDżemiastych co znaleźli tą stronę.<br> Strona tak jak widzicie jest już w 70% zrobiona, cały szkielet gotowy, czyli to co najważniejsze<br> Mimo wszystko pomoc przy tworzeniu nadal się przyda, potrzebujemy kogoś kto będz
ie pisał teksty<br> newsy, artykuły itp. Także jak jakiś grafik umiałby zrobić lepsze logo z ładniej
szymi pańmi, proszę bardzo<br></td> </tr> </table> <table height="20" cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> </tr> </table> </table> <table height="30" cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td width="100%" style="color: #ffffff; background: url(gfx/tlos.jpg); border: 1px solid #000000;"> <center> Š Copyright by Dżem guild </center> </td> </tr> </table> </BODY> </HTML>
W index.php
<?php include("head.php") render_head() ?>
ten kod mojej produkcji, czyli już na start był skazany na błąd:), miał wyświetlać logo, chciałem by tak to działało bo nie chce wklejać kodu loga na każdą podstrone. Lecz nie wiedzieć czemu nie działa, funkcja reder)head() head.php nie zostaje wczytana. Dlategoż właśnie zwracam się o pomoc do Was.