Image not showing

Hi
I have this line of code to display an image. The image does not display, and can’t figure out why.

This is the line of code:

echo "<td align = 'right' width = '15%'><a href = 'editlink.php?comp_id=" . $row['comp_id'] . "><img src = 'edit-icon.gif' alt = '" . $mylinks['readmore'] . "'></a></td></tr>";

The image for the time being is on the same directory as the file that is calling it.

Can anyone help me out with this?

Thank You

You’re missing a closing single quote in the href
[php]<a href = ‘editlink.php?comp_id=" . $row[‘comp_id’] . “>[/php]
Should be
[php]<a href = 'editlink.php?comp_id=” . $row[‘comp_id’] . "’>[/php]

Thank You. I already solved it. Missed me by 5 minutes. But Thank You anyway.

Sponsor our Newsletter | Privacy Policy | Terms of Service