ah. well it seems that the footer.php file either doesnt exist at all, or at least not in the same directory as your index.php file
Well, you guys all said the coding is ok now for footer.php. Then I created footer.php file in public_html/includes. Thereafter I placed in the index.php like this: <div id="footer"/> <?php include("footer.php"); ?> </div> </body> </html> SO where is the mistake now?
Just because you have a folder called includes does not automatically mean you can include files from that directory...where you have include("footer.php"); PHP: change it to include("includes/footer.php"); PHP:
Thanks Jay6390.Finally it came right. But here is my another query, the footer.php file shows: File Type: ISO-8859 text instead of File Type: PHP script text Is that a problem? If I wrap up the entire coding in block <?php entire footer coding.......blah blah.. ;?> The file turns into PHP script text of course but on index page I get the following error: Parse error: syntax error, unexpected '<' in /home/pri/public_html/lovelytoys/includes/footer.php on line 3
Don't put stuff in the <?php ?> tags unless you know what you are doing. that error is because you have just thrown in stuff between the tags
Alright, I got it. But footer.php file showing as: File Type: ISO-8859 text instead of File Type: PHP script text Is that Ok?
hey!! That is wrong. You dont need "<?php" for that. Also, the links should be before </div> or </body>