Jump to content


Photo

Displaying sublinks on some pages but not others.


  • Please log in to reply
2 replies to this topic

#1 andymelton

andymelton
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 September 2006 - 02:38 PM

I am new to PHP and was just wondering if there was a way to display sublinks on some pages but not others and if there was a tutorial on how to do this. Thanks.

#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 21 September 2006 - 02:45 PM

i'm afraid you'll have to be a little more detailed than that. there are several things that come to my mind based on your question, so i'd rather you be a little more direct in what you're after and then we can help you come up with the best solution. maybe an example would help.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 andymelton

andymelton
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 September 2006 - 03:23 PM

Ok. Thanks, I'll try to be more specific.

The site I am working on does testing of cattle & horses to see if they are pregnant. They have a horse section and a cattle section. I would like to display sub-links in each of those sections that are relevant to only those sections of the website. I could simply just insert them into each page but I don't want to have to update each one of them by hand each time I need to make a change.

I am thinking maybe a phpinclude, but maybe there is something better?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users