Jump to content


Photo

include HTML/CSS into PHP


  • Please log in to reply
2 replies to this topic

#1 COOMERDP

COOMERDP
  • Members
  • Pip
  • Newbie
  • 1 posts

Posted 21 June 2005 - 11:10 AM

Hi,

I'm pretty new to CSS but less new to PHP.

I've simply built a HTML page using a CSS (one of the dreamweaver MX samples!) and it works fine when I call it direct but not when I call it using an include statement inside PHP5.

I've added the path to the CSS files inside the PHP but this does not seem to do the trick...

Is there anything else I shoudl know or try?

Any help much appreciated!

Thanks,

Darren.

#2 Dillinger

Dillinger
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationBrit ex-pat in MA, U.S.

Posted 21 June 2005 - 02:25 PM

Showing us the code would likely be a good start...

#3 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 21 June 2005 - 02:41 PM

right: show us the code!!! lol. but, you may need to make sure that you are not trying to include a file with doctype and header information inside the body of another HTML page.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users