+ 1

How to insert image tag in php script?

13th Oct 2017, 2:59 PM
Noushin taj
4 odpowiedzi
+ 2
@javaspell or use single quote
13th Oct 2017, 4:18 PM
MBZH31
MBZH31 - avatar
+ 1
2 solutions 1 - close your php tag and write html code with img tag 2 - write something like echo "<img ...\>" in your php code
13th Oct 2017, 3:25 PM
MBZH31
MBZH31 - avatar
13th Oct 2017, 3:32 PM
MBZH31
MBZH31 - avatar
0
you need to escape the quotes like this <?php echo "<hr/>"; echo "<img src=\"image.jpg\" alt=\"Image\">"; ?>
13th Oct 2017, 4:16 PM
Core i9
Core i9 - avatar