|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello.
I am making a site template with php includes, however, I have lots of things I need in the template and I do not know how to do them as I am fairly new to PHP. Here is an idea of what I want to the site look like http://i198.photobucket.com/albums/a...per/design.png Yellow areas are the template, red areas are the template but are adverts and the blue area is what is dynamic and will be changed on the page type via creating a new php document, copying the template from a text file on the server then including the file with the data in the specific place. So could someone post example code so I can learn off of it or something :-\ In the blue area I will be using include("./s/file".$_GET['id'].".php") Will it work with the template aswell? Regards, Perry |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
When you say "template" are you referring to a DW *.dwt file? If so, then
your process is incorrect. > In the blue area I will be using > include("./s/file".$_GET['id'].".php") Why "./s"? Why not just "s". Anyhow, whatever you do, DO NOT MANUALLY ENTER LINKS! Let DW make them for you. INSERT | Server-side include > browse to and select the target file. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "Perry|" <webforumsuser@macromedia.com> wrote in message news:g3113c$k8r$1@forums.macromedia.com... > Hello. > > I am making a site template with php includes, however, I have lots of > things > I need in the template and I do not know how to do them as I am fairly new > to > PHP. > > Here is an idea of what I want to the site look like > > http://i198.photobucket.com/albums/a...per/design.png > > Yellow areas are the template, red areas are the template but are adverts > and > the blue area is what is dynamic and will be changed on the page type via > creating a new php document, copying the template from a text file on the > server then including the file with the data in the specific place. So > could > someone post example code so I can learn off of it or something :-\ > > In the blue area I will be using > include("./s/file".$_GET['id'].".php") > > Will it work with the template aswell? > > Regards, > > Perry > |
|
![]() |
| Outils de la discussion | |
|
|