How to include our path of image
<a href="image.jpg" data-fancybox="images" data-caption="My caption">
<img src="thumbnail.jpg" alt="" />
</a>
I wrote code for image slideing while a click in iamge dynamicaly and i it giving me error
Parse error: syntax error, unexpected '' '' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in D:\xampp\htdocs\PHP\gallery2.php on line 68
echo ' <a href='/IMAGES/".$image."' </a> ';
echo "<img src='IMAGES/".$image."'> ";
what change should done to have proper image slide
Try This
echo '<a href="/IMAGES/'.$image.'" data-fancybox="images" data-caption="My caption">.
<img src="/IMAGES/'.$image.'" alt="" />
</a>'
I am assuming /IMAGES/
is folder name not path