View Full Version : link

03-10-2007, 02:17 PM
I am displaying data from the database in a table using "echo"
I want to make one of the data entries a link.
When i use the <a> tag within php it doesnt work.

Here's the code i'm trying

echo "<td width = 20% class = style6><a href = updatecheck.php?name=". $link;">" . $row['Name'] . "</href></td>";

I've checked all the variables and they work

Any ideas?

03-10-2007, 02:25 PM
The proper syntax for a link is -

<a href="url">Text to be displayed</a>

03-10-2007, 02:29 PM

03-10-2007, 02:44 PM
You need a '.' after $link, not a colon.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum