This is a discussion on "help with banner updating" within the Starting Out section. This forum, and the thread "help with banner updating are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
help with banner updating
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
help with banner updating
I have a website that has a lot of sub pages. I have some banners (images hosted and linked to external places) on it right now but they are coded into each of my pages. I want to find a way to put some code into each page so that looks at a file on my domain which gives it the location of the external image link and the hyperlink. In the future I do not want to have to go to every single page and update the banners and links.
|
|
|
|
||||
|
Re: help with banner updating
PHP includes?
if you don't know what that is, take a look on w3schools.com
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: help with banner updating
ok. I seem to be having a little trouble with dreamweaver. I first created a main page (home.php) then created a page with a banner (titlebanner.php). Dreamweaver is not letting me adjust the size of the titlebanner.php page to be the exact same size as the image or any other size for that matter, the options are all grayed out (i figure thats how i am suppose to do it). I then say screw it and try to add the titlebanner.php into the home.php using the code
<body> <?php include(titlebanner.php); ?> </body> </html> all it gives me is a little box with php in it. |
|
||||
|
Re: help with banner updating
okay first of all
<?php include(titlebanner.php); ?> i usually have it with apostrophes <?php include('titlebanner.php'); ?> and secondly, do you have a host? your not going to be able to see the result in dreamweaver. you need someone to host your website so that the .php extension can be handled
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: help with banner updating
oops had deleted the line and forgot to put those back. yeah the problem was i needed to upload it to the host. thanks
|
|
||||
|
Re: help with banner updating
y'welcome,
glad you got it working
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: help with banner updating
Quote:
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
|
|
||||
|
Re: help with banner updating
Quote:
you can see included file
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: help with banner updating
is there a way to use the include function in the header? All i have seen is in the body of a page. Just thought of it as im heading to sleep.
|
|
||||
|
Re: help with banner updating
i don't really know what you mean
could explain? thanks
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: help with banner updating
I have only seen
<body> <?php include('name.php'); ?> </body> i would like to add the include to the head <head> <?php include('name.php'); ?> </head> does this work or is there another way i can do this? |
|
||||
|
Re: help with banner updating
You can do that.
|
|
||||
|
Re: help with banner updating
Quote:
putting content in there such as <p> and <div> would mess up your code
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: help with banner updating
the code i am trying to use on some pages and not others is from the following site. Its possible for me to leave the head code in the template page I am creating but all the unnecessary code will just increase my bandwidth usage when it is not needed.
http://www.dynamicdrive.com/dynamici...pmenuindex.htm |
|
||||
|
Re: help with banner updating
in the code your could put something like this:
you can add as many pages to that ass you like. || means or. likewise && is and. and there's an opposite way of this
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Tags |
| code help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Updating a record | Wheatus7 | Classic ASP | 0 | Jun 3rd, 2007 06:56 |
| Updating Links | mrbernz | Web Page Design | 7 | Dec 2nd, 2006 22:36 |
| updating database | franknu | PHP Forum | 4 | Oct 8th, 2006 20:32 |
| Updating images - how to do it, please? | acegap | Introduce Yourself | 9 | Apr 24th, 2006 22:25 |