Results 1 to 4 of 4
Thread: Parse Error help!?!?!?
-
October 8th, 2008, 11:38 AM #117Web Developer/Designer
postsParse 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
-
October 8th, 2008, 02:40 PM #2
Try
PHP Code:<td width="30%"><?PHP echo "<a href=\"{$rows['Link']}\">{$rows['Link']}</a>"; ?></td>
-
October 9th, 2008, 07:29 AM #317Web Developer/Designer
postsWorking! 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
-
October 9th, 2008, 07:49 AM #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

Reply With Quote

Bookmarks