How do i create a link on a dynamic site?

Discussion in 'Link Development' started by articledirectory, Feb 7, 2008.

  1. #1
    How do i create a link on a dynamic site?

    I have site that the content is generated from a database, so i have one file that has a template and is used for all categories on the site, however if i want to put a link on that page, but only want it to show up for one category not all categories how do i do it?

    Is the some kind of "IF statement" i can use like if url is thishcategorypage.html then display this link ??

    Any help is appreciated and rep awarded if you can solve my problem.
     
    articledirectory, Feb 7, 2008 IP
  2. lv211

    lv211 Peon

    Messages:
    168
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How are you creating the urls?
     
    lv211, Feb 8, 2008 IP
  3. articledirectory

    articledirectory Peon

    Messages:
    1,704
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi
    They are created dynamically by the database/script,
    The script has one file called catinfo.php (the main category file) but with a combination of mod rewrite and the script it will show a SEF URL with a .html extension, so if there is 10 categories there will be 10 different urls but essentially only one file, so if i put a text link in that file it will show up on every category, is there a way to make it only show up when a certain category is shown?
     
    articledirectory, Feb 8, 2008 IP