Good morning guys,
I have a php page and need to include the following, “header.php, footer.php and sidebar.php”.
The thing is I am having problems, my page is all out of wack when I include these, can anyone assist, I am fairly new to PHP.
Thanks a million
What do you mean “out of wack”? It may just be your HTML has gotten messed up.
Esherido, what I mean the page is messed up.
Let me start from the beginning, like I said I am new to PHP… for my page layout I create a table, within that table I create three rows, the top one I place the code <?php include (“header.php”); ?> and in the bottom one I place the footer file, I split the middle row in two and place the side bar in the left most portion. In dreamweaver all I am seeing is the header and below my footer there is a large white space.
what did I do wrong?
Thanks
Well, those includes only show when you visit the processed page (EG: Start your webserver (Apache) and view the page in your browser.), Dreamweaver does not process PHP, so it will only show a little icon in your layout where the PHP code exists.
A few good resources on [U]getting starting using PHP[/U] and its [URL=“http://www.kirupa.com/web/phpinclude.htm”][U]includes and requires system[/U] can be found at kirupa.com.
[quote=Esherido;2355802]Well, those includes only show when you visit the processed page (EG: Start your webserver (Apache) and view the page in your browser.), Dreamweaver does not process PHP, so it will only show a little icon in your layout where the PHP code exists.
A few good resources on [U]getting starting using PHP[/U] and its [URL=“http://www.kirupa.com/web/phpinclude.htm”][U]includes and requires system[/U] can be found at kirupa.com.[/quote]
Thank you very much for the advice.
Your welcome, glad I could help!
Best of luck!