Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot include my Css files using require or include in my code
    primarykey
    data
    text
    <p>I am having some unusual problem with my site. i have inserted all the CSS Files in my header file and i have included it in every php page the below is a php header file that i am including it in every php page. however the content of the header appears but the style is not apearing at all. i have checked the path of both the Css and the include file but i still cannot find the problem.</p> <p>let me give you you the path details below and maybe you might be able to spot the problem if i did not. the header is located in the includes folder now what i am trying to do is call the header from the admincontent.php that is located in the admin folder.</p> <p>The css files that are included in the header: localhost/bobs/css/cssfiles....</p> <p>The Header Path:localhost/bobs/includes/header.php</p> <p>The file that is calling the Header: localhost/bobs/admin/admincontent.php</p> <pre><code>&lt;?php require_once("function.php")?&gt; &lt;!DOCTYPE html&gt; &lt;html leng ="en"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;title&gt;ClickTravelStay&lt;/title&gt; &lt;link href="css/reset.css" rel="stylesheet" type="text/css"&gt; &lt;link href="css/general.css" rel="stylesheet" type="text/css"&gt; &lt;link href="css/footer.css" rel="stylesheet" type="text/css"&gt; &lt;link href="css/form.css" rel="stylesheet" type="text/css"&gt; &lt;link href="css/admin.css" rel="stylesheet" type="text/css"&gt; &lt;link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'&gt; &lt;link href='http://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="topHeader" class="Calign"&gt; &lt;a href ="index.php" id="logoFigure"&gt; &lt;img src="img/repetimg/logo.png" height="60"/ &gt; &lt;/a&gt; &lt;div class="cBoth"&gt;&lt;!-- clear Both--&gt;&lt;/div&gt; &lt;ul id="nav"&gt; &lt;li&gt;&lt;a href="index.php"&gt;HOME&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="vication.php"&gt;VICATION&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="carrental.php"&gt;CAR RENTAL&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Corporate&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="deals.php"&gt;DEALS&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contact.php"&gt;CONTACT&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="about.php"&gt;ABOUT US&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul id="help"&gt; &lt;li&gt;&lt;a href="#"&gt;Book online or call: 080099999 Free from a landline&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- END OF topHeader--&gt; </code></pre> <p>Now the following code is the code of the admincontent.php that calls the header file.</p> <pre><code>&lt;?php require_once("../includes/header.php");?&gt; &lt;?php require_once("../includes/connection.php");?&gt; &lt;?php find_hotel_and_room_forNavig();?&gt; &lt;div class="cBoth"&gt;&lt;/div&gt; &lt;div id="sep"&gt;&lt;/div&gt; &lt;div id="content" class="Calign"&gt; &lt;ul id="menu"&gt; &lt;?php Navigation($selected_hot, $selected_rom); ?&gt; &lt;li&gt;&lt;a href="new_hotel.php"&gt;+ Add new Hotel &gt;&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="subcontent"&gt; &lt;?php echo $selected_hot['hotel_name']."&lt;/p&gt;"; echo $selected_rom['room_type']."&lt;/p&gt;"; ?&gt; &lt;/div&gt;&lt;!--end of subcontent--&gt; &lt;/div&gt;&lt;!--end of content--&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>what i don't understand is that when i call the header from the index.php out said the admin folder like this(localhost/bobs/index.php) everything works fine but i cannot refer to the header from the admin folder. is it a bug because from what i see the path is fine unless there is something else that needs to be setup. Remember i can access the content of the header but the style does not display at all. the html comes up as usual but with no style what so ever. thank you very much for your support.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload