Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick Question Please: 2

Status
Not open for further replies.

coldfused

Technical User
Joined
Jan 27, 2001
Messages
2,442
Location
US
Guys i need to make a image a link, i am manipulating a freeware script, i just want to change the text link to a image link, here is what i have:

if ($DownloadDelivery == On)
{
echo &quot;<p align=left><a href = '$downURL/$downfile2'><img src=&quot;../images/msword.gif&quot; width=&quot;60&quot; height=&quot;62&quot; border=&quot;0&quot;></a>.</p>&quot;;
}

But it is giving me a parse error on that line, so i am guessing i am not adding the image link correctly.

New to PHP so if this is a no brainer, i appoligize.

Some help please.

 
if ($DownloadDelivery == On)
{
echo &quot;<p align=left><a href = '$downURL/$downfile2'><img src='../images/msword.gif' width='60' height='62' border='0'></a>.</p>&quot;;
}


does this work?

Known is handfull, Unknown is worldfull
 
So you saw that the problem was that you had double quotes inside double quotes?

You must either escape the inside quotes or use single ones. Otherwise PHP can't tell where you open and close strings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top