Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Include..
04-03-2007, 01:09 AM
Post: #1
PHP Include..
Right, i want to include a file in php..

Code:
<?PHP
include("http://blahblah.php");
?>

easy peasy eh? well not quite.. the php file I'm including uses a all sorts of template files and includes itself to display some HTML table.. the problem is when i include it i only get the text within this table.. I'm not sure this is because of the crap loads of CSS and DIV crap i got on the page I'm trying to put the include on or because of something else.. any ideas?

*edit*

i explained badly. i actually get the correct table.. but none of the pictures and boarders and colours associated with it (check http://allllec.co.uk )

[Image: alec.hewitt.jpg.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2007, 02:04 AM
Post: #2
 
is the css associated with the include seperate from the css on the actaul page?

[Image: riona-VICKY.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2007, 11:16 AM
Post: #3
 
Echoing Spid - are the styles inline, or tucked away in a stylesheet that you're not including on the main page? If the latter, you need an @import directive in your main css file.

Give me liberty, or give me death - Patrick Henry 1775.
Think for yourselves and let others enjoy the privilege to do so too - Evelyn Beatrice Hall 1906
I spread my wings, only to find that they are paper in the rain - Neko 2006
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2007, 01:19 PM
Post: #4
 
Yeah the page I'm trying to include has a separate CSS file.. thing is it shares names of id's and tags and all that crap with the CSS from my main page.. Sad what should i do?

[Image: alec.hewitt.jpg.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2007, 01:25 PM
Post: #5
 
change the names of them slightly and stick it all in one css file?

[Image: riona-VICKY.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2007, 01:27 PM
Post: #6
 
Effort! lol, well if theres not an easier way ill get right on Smile ta

alec

[Image: alec.hewitt.jpg.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2007, 01:47 PM
Post: #7
 
Blah, all went tits up lol. Just made it so it opens up in a small new window from the original file. o well. thanks for trying =p lol

ta

alec

[Image: alec.hewitt.jpg.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
05-03-2007, 09:50 AM
Post: #8
 
I feel a disturbance in the force...

No, it was just a surge of pity for the foo' that doesn't learn CSS before PHP Tongue

Give me liberty, or give me death - Patrick Henry 1775.
Think for yourselves and let others enjoy the privilege to do so too - Evelyn Beatrice Hall 1906
I spread my wings, only to find that they are paper in the rain - Neko 2006
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
05-03-2007, 09:58 AM
Post: #9
 
Oops, my brain can't have been engaged when I last replied to this.

Change #id to .class in your css and you can use the same div class over and over again in the page without issue.

[Image: riona-VICKY.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
05-03-2007, 11:42 AM
Post: #10
 
Ah cool spid. Not using it for this anymore but i will bear it in mind.. as neko said really should have learnt CSS before anything else lol.. mind you its not that hard to pick up.

[Image: alec.hewitt.jpg.png]
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: