HTML tag using string variable
Posted: Thu Apr 02, 2009 3:10 pm
Hi
I am having trouble in displaying image using string variable in php as image is not displaying using below code:
However image is displaying correctly using:
Can some please guide me about this problem.
I am having trouble in displaying image using string variable in php as image is not displaying using below code:
Code: Select all
$string = '<img width=\"100\" height=\"100\" align=\"left\" src=\"path/to/image.jpg\" />';
echo "$string";
Code: Select all
echo "<img width=\"100\" height=\"100\" align=\"left\" src=\"path/to/image.jpg\" />";