DaniWeb IT Discussion Community

Code Snippets (http://www.daniweb.com/code/)
-   php (http://www.daniweb.com/code/php.html)
-   -   PHP Include Example (http://www.daniweb.com/code/snippet340.html)

Electrohead php syntax
Jul 28th, 2005
Example of using INCLUDE to show a nav bar. For beginners. Simply uses include to show an external file (in this case, nav.php) and that's it! You can also include this in another page with a CSS style. The CSS will be automatically included in formatting the INCLUDEd page!

  1. <?php
  2. include("navigation.php");
  3. ?>