CSS dissappears after using PHP code.
#1

Basically guys, I need help.

I want to use .php so I removed this code from my index.php:
PHP код:
<html>
<
head>
<
link href="css/main.css" rel="stylesheet" type="text/css">
<
title>Name</title>
</
head>
<
body>
<
div class="headerMenu">
     <
div id="wrapper">
          <
div class="logo">
               <
img src="img/test.png">
          </
div>
          <
div class="search_box">
               <
form method="GET" action="search.php" id="search">
               <
input name="q" type="text" size="60" placeholder="Search ..." />
               </
form>
          </
div>
          <
div id="menu">
               <
a href="#">Home</a>
               <
a href="#">About</a>
               <
a href="#">Sign Up</a>
               <
a href="#">Login</a>
          </
div>
     </
div>
</
div>
<
br />
<
br />
<
br />
<
br /> 
and paste it another file and save it to "inc/incfiles/header.inc.php"
I then add at the top to the index.php:

<? include("inc/incfiles/header.inc.php") ?>

And all CSS is removed..
Help?!
Reply
#2

change <link href="css/main.css" rel="stylesheet" type="text/css">
to <link href="../../css/main.css" rel="stylesheet" type="text/css">
Reply
#3

And I add that where?
Reply
#4

In your code. IT IS IN THE THIRD LINE ON THE CODE YOU PROVIDED US

You'll have to do the same thing to that image
Reply
#5

Basically this is what I get.

Reply
#6

Quote:
Originally Posted by Jernu
Посмотреть сообщение
Basically this is what I get.
Looks like you didin't change it from *html to *.php
Reply
#7

I did.
Reply
#8

Post the whole findFriends/index.php page if it's not an extension issue.
Reply
#9

Quote:
Originally Posted by Jernu
Посмотреть сообщение
I did.
What do you use in your PHP file, <? ?> or <?php ?> ?
Reply
#10

-.-
is this so hard?
PHP код:
<? include("inc/incfiles/header.inc.php"?>
That's what you have.
PHP код:
<? include("inc/incfiles/header.inc.php"); ?>
That's what you need, a freaking ";".
This isn't lua mate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)