php is killing me slowly...

This is a discussion on "php is killing me slowly..." within the PHP Forum section. This forum, and the thread "php is killing me slowly... are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 3rd, 2005, 08:23
Junior Member
Join Date: May 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
php is killing me slowly...

ok, i just learned basic basic php. Heres the delemma...

I have an image i want to place at the top of my page, as a head image. I have a menu on the right as a navigation, and a body under the head image to the left of the navigation.

I have a header.php, a main.php, and an index.php. I wanted to use css and aboslute positioning to place my images and stuff, but how do i do this??

I keep getting an error on line 1 message. I have my main.php set up so that it has news and stuff in it. I dont know where to place anything at all. Can someone help me or give me a short example of what i would place where to make this happen? I also have a few buttons i want in the right nav absolutly positioned i guess and some text in a tabel udner that. Please help, php is killing me.
Reply With Quote

  #2 (permalink)  
Old Jul 3rd, 2005, 09:17
Junior Member
Join Date: May 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, just an update to this. I have my header configured so that my background and head image is taken care of. I also have my menu in there.

I found not to use the external stylesheet, but do everything internally with style attributes. But now, my question is with linking them.

My header holds my background and menu and imporant stuff, and now I want to add content to the site. How would I link this??

I have a page named news.php. I want the header information in it with the news showing up in only a certain spot i have already laid out in my graphhics.
Reply With Quote
  #3 (permalink)  
Old Jul 3rd, 2005, 21:45
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
This sounds like a HTML/CSS problem more than anything else? One good method is to have a PHP file which has your template and which simply includes the necessary content into that template.

Your header holds your background and menu and important stuff... and you want to add content to it? So what's stopping you? I'm quite confused.
Reply With Quote
  #4 (permalink)  
Old Jul 4th, 2005, 05:45
Junior Member
Join Date: May 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry, I just learned how to do this. I have the header.php, which has my menu and everything for easy updating. My problem is, i want to start making my content, like my news, and media. I dont know how to link them, and every tutorial Ive looked at has given me bad info or I just couldnt understand.

I want to link header to all pages. So I would start news.php, and inside use < ? php include name of page etc??

Sorry If Im confusing you and thanks for the help.
Reply With Quote
  #5 (permalink)  
Old Jul 4th, 2005, 15:38
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Well then, simply include news.php on all pages...

include('filename.php');

should do it!
Reply With Quote
  #6 (permalink)  
Old Jul 4th, 2005, 17:34
Junior Member
Join Date: May 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you, I got it all now. It was actually easier than I was trying to make it, I got bunk info from a buddy which caused the big confusion.
Reply With Quote
Reply

Tags
php, killing, slowly

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Motion Guides are killing me Webforumz Staff Flash & Multimedia Forum 5 May 20th, 2004 15:27


All times are GMT. The time now is 11:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43