The sintaxs of my link is wrong. Can someone spot why? Thanks.

Discussion in 'PHP' started by Mitchell, Aug 1, 2010.

  1. #1
    
    <tr>
            <td><a href="viewItem.php?id=<?php echo $row['Id']; ?>"<?php echo $row['title']; ?></a></td>
    </tr>
    
    PHP:

     
    Mitchell, Aug 1, 2010 IP
  2. pdjsolutions

    pdjsolutions Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, after the href end quote, you have not given a ">". so thats why the problem's there.

    <tr>
    <td><a href="viewItem.php?id=<?php echo $row['Id']; ?>"><?php echo $row['title']; ?></a></td>
    </tr>

    That should work :)
     
    pdjsolutions, Aug 1, 2010 IP
  3. Mitchell

    Mitchell Peon

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you.

    I learn something new every day.
     
    Mitchell, Aug 1, 2010 IP