Jump to content

[SOLVED] Another Newbie problem trying to code 'a href'


colinsp

Recommended Posts

You were all so helpful the other day i thought that I would come back for some more (hopefully you don't mind)

 

I have got well under way with the application I want to create. I have a url stored in a mysql database. I have retrieved it and displayed it on my page BUT when you click the link it just refreshes the page it doesn't take you to the linked url. I suspect that I have some missing quotes but I can't work out where.

 

Here is the section of the code

 

while($row = mysql_fetch_array($result, MYSQL_NUM))
{
    echo "<tr>";
    //echo $row[2]." ".$row[3]." ".$row[4]."<br>\n ";
    echo "<td>$row[2]</td>";
    echo "<td>$row[3]</td>";
    echo "<td><a href=>$row[4]</a></td>";
    echo "</tr>\n"; 
} 

 

It is $row[4] that hold the url. It displays correctly on the html page it is just the link that doesn't work.

 

TIA for any advice.

 

Colin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.