POLALA.COM
welcome to my space
X
Welcome to:polala.com
Search:  
NAVIGATION - HOME

PHP, , file in cel

Published by: rose 2009-01-07
Like I said, lets say I have 50 pages. All are going to include this menu, but here is my question: On say the 20th, 37th, 45th pages I want to include only the portion of the "menu" in group 25. In ten other pages I want to include only the portion of the menu in group 3. etc etc. It will always be just one group. How do I do this? I'm guessing there are some tags I need to add to the menu file, and one unique line of code for each individual page.

  • johnjri1-ga, You can do this using a variable. Say you have three pages, each of which needs to show a different menu group. Before you do the include, set a variable indicating which menu group should appear on this page. In the samples below, the only thing that changes is the value of the $menu_group variable. page1.html looks like this. Note the $menu_group variable. page2.html looks like this: page3.html looks like this: Now that each page knows which menu it wants, menu.php needs to use that value to decide what to include. By using print statements, you can print only the appropriate menu group into the page. Note that the emebedded quote marks are preceded by a backslash. This is necessary to prevent parsing errors in the code. This tells PHP that you want a literal quote mark, rather than that the print string is ending. menu.php:
  • Voller Fuel Cell Battery Charger (TreeHugger)::
    file or directory in /usr/www/users/dmazone4/files/2006/07/voller_fuel_cel.php on line 38 We remember when the first cel phones came out, and they were
    http://www.treehugger.com/files/2006/07/voller_fuel_cel.php
    HOME
    I know a little HTML and very little about PHP. I have two types of files: I have one file, let's call it menu.php (I'm not sure whether to save it as a .html file or a .php file). It has say 30 groups of links in it which are in groups something like this: http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    etc. etc. http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    CEI - Creators of EnSight Visualization Software - Home::
    CEI makes EnSight, the extreme visualization post-processor. out EnSight 9. And EnLiten 8 .els files will still play in EnLiten 9. EnSight 8
    http://www.ensight.com/
    HOME
    PHP: symlink - Manual::
    bool symlink ( string $cel , string $dowiÄ…zanie ) However, if you want a file of non-predefined type to be viewable in the browser,
    http://www.php.net/manual/pl/function.symlink.php
    HOME
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
    http://www.somplace.com">wordsbasically describing a page or site
  • CutePHP Forums > DISPLAY show_news.php inside a html cell or atable::
    how can i intergrate show_news.php inside a html file, into a cell in a table. By placing the php include inside the cel? <td> <?PHP $category = 3
    http://cutephp.com/forum/lofiversion/index.php/t21998.html
    HOME
    Human Space Flight (HSF) - Realtime Data::
    A Java applet that will calculate when spacecraft will be visible in the night sky over the viewers own location. javascript be enabled in your browser.
    http://spaceflight.nasa.gov/realdata/sightings/
    HOME
    Menu 1 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 1 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 1 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 1 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 1 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 1 wordsbasically describing a page or site
    n"); } else if($menu_group == 2) { print("http://www.somplace.com">Menu 2 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 2 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 2 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 2 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 2 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 2 wordsbasically describing a page or site
    n"); } else if($menu_group == 3) { print("http://www.somplace.com">Menu 3 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 3 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 3 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 3 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 3 wordsbasically describing a page or site
    n"); print("http://www.somplace.com">Menu 3 wordsbasically describing a page or site
    n"); } ?> To see this work, try the following links: http://www.hammerdata.com/Google/GA551958/page1.html http://www.hammerdata.com/Google/GA551958/page2.html http://www.hammerdata.com/Google/GA551958/page3.html Good luck with your web project! - Hammer Search strategy ---------------- None. Personal experience. Additional resources ---------------------- PHP Online Manual http://us3.php.net/manual/en/

  • Notes: 1. Lines in menu.php should not be wrapped. 2. If your server does not interpret php in html files, then you will need to name your files with a .php extension. - Hammer


  • Thanks Hammer, your solution works perfectly. Thanks! I asked a second question about limiting the results. The question is in the same category with an almost identical heading.


  • johnjril-ga, I'm glad the solution worked for you. If I get a chance, I'll look at your other question. If I don't get to it, another Researcher will probably be able to help you. - Hammer





  • Where's The Advantage In Windows Genuine Advantage?
    Stocks Bounce After S&P Joins Bear Market
    You are looking at:polala.com's PHP, , file in cel, click polala.com to home
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about PHP, , file in cel , Please add it free.
  • a merry online season for web merchants
  • cybersafe opens program for enterprise security
  • ingram micro launches venturetech network
  • hp granted strong cryptography export license
  • first data divests nationwide credit inc
  • another entrant in online grocery wars
  • mastercard modifies set policy for online transactions
  • the baan company chooses broadvision
  • intelliquest licenses first data solutions products
  • farm company extends e commerce pact
  • lycos the latest to do takeout with cybermeals
  • industry leaders advance secure enterprise environment
  • priority one names vp for marketing
  • software net to employ preview s timelock
  •  
  • c2net software signs three overseas banks
  • macromedia release software sign e distribution pact
  • baltimore technologies to upgrade unicert
  • rsa plans new open certificate based security apps
  • food service firm claims 180 million in e business
  • autoconnect signs as lead car vendor on lycos
  • certco delivers ca solution signs first client
  • first auction e bay sign partnership deal
  • excite cybermeals in 15 million marketing deal
  • jcb selects cybertrust japan for set based digital certificates
  • integretel in alliance with securebill
  • open market products to support xml
  • proxicom somm amp partner plan computer sales site

  • About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 polala.com All Rights Reserved
    Site made&Support support@polala.com    E-mail: web@polala.com