Unexpected character in input error

I have this error in my code

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/view_album_images.php on line 22

在这里输入图像描述

What is the issue with this line? Thanks


你需要删除最后一个单引号:

echo "<img src='upload/".$row['photothumbnail']."' width='200' height='200'/>";

echo "<a href='upload/' " . $row['photopreview'] . " data-lightbox='image-1' tile='My caption'";
echo "<img src='upload/' " . $row['photothumbnail'] . " width='200' ";
echo "</a>";
链接地址: http://www.djcxy.com/p/69478.html

上一篇: 警告:输入中出现意外字符:'\'(ASCII = 92)状态= 1

下一篇: 输入错误中意外的字符