如何在php中插入图像

时间:2017-08-15 02:04:17

标签: php

这是我的代码,但是当我尝试运行它时,我收到一个错误说, "Parse error: syntax error, unexpected 'src' (T_STRING), expecting ',' or ';' in H:\xampp\htdocs\teacher\page1.php on line 33"

代码如下所示:

echo "<div id = 'Image1'>"
<img src='path/to/Desert.jpg' alt='photo of me' />"</div>";
echo "<div id = 'Title'>". $output['Title'] . "</div>";
echo "<div  id = 'Initials'>" . $output['Cipher']."</div>";
echo "<div id = 'LastName'>" .$output['LastName'] . "</div>";
echo "<div id = 'Level'>".$output['SaleryLevel'] . "</div>";

1 个答案:

答案 0 :(得分:0)

老兄,你忘记了一个分号;在第33行..你甚至不能读错误?