can any body tell what is going to wrong with this syntax

echo '<div> <a href=' ".$path.$i.$s.$ext." '> . <img src=' ".$path.$i.$ext." '> </div>';

Please Help

try this

<?php
echo '<div> <a href=' .$path.$i.$s.$ext. '>  <img src=' .$path.$i.$ext. '> </div>';
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.