Hello everyone:
I created photo gallery page with php extension - yntour.php. I want to access the header.php file located in the includes folder by using php include satement. Header file has access to css files.
php include statement in yntour.php file
access css file within header.phpPHP Code:$page_title = "Yun Nan Tour Gallery";
include('../includes/header.php');
when user browsed yntour.php page the navigation bar fomat is not correct.Code:<style type="text/css"> @import url(css/global.css); @import url(css/navbar.css); </style>
the browser complained that global.css and navbar.css can't be found.
the file navbar.css controls navigation bar format is in css folder.
photo-gallery.css (is in css folder) controls the format for yntour.php page
I think I am confused with the file structure and don't know how to access specific file by using php include statement. Please take look at my code and file structure image to help me troubleshoot the problem. Thanks!
link to yntour.php page
link to corret navbar fomat
Link to file structure
webdev077
1-5-08


Reply With Quote
Bookmarks