can any help with this code

Discussion in 'PHP' started by dougvcd, Mar 19, 2008.

  1. #1
    just this one line i cant seem to get write

    echo "<td>" "<img src=\"http://lostpetsplymouth.com/images/".$row['pname'].'\" /></td>';
    PHP:
    cheers
    Doug
     
    dougvcd, Mar 19, 2008 IP
  2. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How about:

    echo "<td><img src='http://lostpetsplymouth.com/images/" . $row['pname'] . "' /></td>";
    PHP:
     
    Gordaen, Mar 19, 2008 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    Or if you prefer ' to ":

    
    
    echo '<td><img src="http://lostpetsplymouth.com/images/'.$row['pname'].'" /></td>';
    
    
    PHP:
     
    jestep, Mar 19, 2008 IP
  4. dougvcd

    dougvcd Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thank you all now working ok
    cheers
    Doug
     
    dougvcd, Mar 20, 2008 IP
  5. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #5
    dougvcd..you asked that same question in another thread and i did it for you
     
    ezprint2008, Mar 20, 2008 IP