Jump to content

[SOLVED] Image as Link


marukochan

Recommended Posts

Hi!

 

I could not figure out what is wrong with my code. I just want to make the icon viewer.ico as the link.

 

The code is

echo("<td width=10% align=middle><a href='project_details.php?id=".$row["project_id"]."'><img src="images/viewer.ico" border="0"></a>");

 

The error is

Parse error: syntax error, unexpected T_STRING in C:\Program Files\Apache Group\Apache2\htdocs\project paper\mogec26Feb07\project_display.php on line 182

 

If I change the image with text, the script will run without error.

 

Hope somebody could point out to me what is wrong with the code.

 

TQ

Link to comment
https://forums.phpfreaks.com/topic/40135-solved-image-as-link/
Share on other sites

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.