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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.