1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help Needed

Discussion in 'PHP' started by Neale, Oct 31, 2006.

  1. #1
    Hi I am re designing a menu bar I Only have basic PHP Skills
    & I have no idea how to get around this

    $menu = "<a href=http://www.*****.com/Notre-Dame/>Notre Dame</a>";

    The Space in the second Notre Dame is messing up the page how do i add a space in this instance Thanks Neale
     
    Neale, Oct 31, 2006 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That space shouldn't cause any trouble. However I assume you are trying to build an HTML link and therefore you are missing some quotes in the link. Since you are using double-quotes as your string delimiters you might want to change them to be single-quotes in order to not break the string:
    $menu = '<a href="http://www.*****.com/Notre-Dame/">Notre Dame</a>';
    PHP:
     
    tflight, Oct 31, 2006 IP
    Neale likes this.
  3. Neale

    Neale Peon

    Messages:
    583
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Worked a dream :) P Rep added Thank You :D
     
    Neale, Oct 31, 2006 IP