Jump to content

Possible escaping issue


gwh

Recommended Posts

Hi everyone,

 

I have the following line of code:

 

echo "<p><img src=\"../../../../images/catalogue/{$itemSwatchBoth} . '.jpg'\" border=\"0\" alt=\"\" /></p>";

But when it outputs to the browser I get:

 

<p><img src="../../../../images/catalogue/170_270 . '.jpg'" border="0" alt="" /></p>

 

 

So the .jpg part isn't rendering.

 

Can anyone see what I've done wrong?

 

Appreciate any help.

Link to comment
https://forums.phpfreaks.com/topic/193642-possible-escaping-issue/
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.