need info how to put a space between lines

Discussion in 'PHP' started by dougvcd, Aug 24, 2007.

  1. #1
    ok i have this code which displays info
    but i would like to be able to put a line space between some of them
    can any one advise
    cheers
    Doug

    Echo "<b>Park Name:</b> ".$info['parkname'] . " <br>";
    Echo "<b>County:</b> ".$info['county'] . " <br>";
    Echo "<b>Park Location:</b> ".$info['parklocation'] . " <br>";
    Echo "<b>Details:</b> ".$info['caravandetails'] . " <br>";
    Echo "<b>Smoking:</b> ".$info['smoke'] . " <br>";
    Echo "<b>Pets:</b> ".$info['pets'] . " <br>";
    Echo "<b>Children:</b> ".$info['kids'] . " <br>";
    PHP:

     
    dougvcd, Aug 24, 2007 IP
  2. MicroSun

    MicroSun Active Member

    Messages:
    133
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Just use <hr> tag at the end of the relevant line.
     
    MicroSun, Aug 24, 2007 IP
  3. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #3
    You can use \n
     
    crazyryan, Aug 24, 2007 IP
  4. DoA

    DoA Peon

    Messages:
    531
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if you mean between

    Echo "<b>Park Name:</b> ".$info['parkname'] . " <br>"; and
    Echo "<b>County:</b> ".$info['county'] . " <br>";

    Just add an extra <br> tag
     
    DoA, Aug 24, 2007 IP