Results 1 to 4 of 4

Thread: Parse Error help!?!?!?

  1. #1

    Parse Error help!?!?!?

    I'm getting a parse error in the following line and aint sure what's the problem.

    <td width="30%"><? echo "<a href='" . $rows['Link'] . "'>" . $rows['Link'] . "</a>"</td>

    Thing is, i'm trying to retreive text from a database and want to print it as a link. hence the <a href> tags. I have tried all sorts to resurect the problem, im gussing im missing a colon or comma at some point? Have tried most places so maybe the code is wrong a little?

    Any help would be much appreciated.
    Ian

  2. #2
    jwilliam's Avatar
    476
    posts
    An intellectual carrot!
    Try

    PHP Code:
    <td width="30%"><?PHP echo "<a href=\"{$rows['Link']}\">{$rows['Link']}</a>"?></td>

  3. #3
    Working! Thanks jwilliam!

    However, is it now possble to open this link up in a new window somehow?

    <td width="23%"><?PHP echo "<a href=\"{$rows['Link']}\">{$rows['Link']}</a>"; ?></td>


    Ian

  4. #4
    this should do it:
    <td width="30%"><? echo "<a href='" . $rows['Link'] . "'>" . $rows['Link'] . "</a></td>";
    the world is getting more complex because people need simple solutions

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012