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.
|
|
|
|
|
![]() |
||
php is killing me slowly...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
Well then, simply include news.php on all pages...
include('filename.php'); should do it! |
![]() |
| Tags |
| php, killing, slowly |
| Thread Tools | |
|
|
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 |