Getting error in using echo statement in php?
<p>i have use this code to display image from database, but it shows syntax error.. here is my backend code.</p>

<pre><code>&lt;?php
        echo ' &lt;div id="ib-main-wrapper" class="ib-main-wrapper"&gt;';
        echo ' &lt;div class="ib-main"&gt;';
        $sql_select = "select * from tbl_photo";
        $sql_select =  mysql_query($select_image);
        while($data = mysql_fetch_array($sql_select)){

                echo "&lt;a href="#"&gt;&lt;img src='".$path.$data['photo']."' data-largesrc='".$path.$data['photo']."' /&gt;&lt;span&gt;".$data['photo']."&lt;/span&gt;&lt;/a&gt;";
        }
        echo '&lt;/div&gt;&lt;/div&gt;';
        ?&gt;
</code></pre>

<p>It's static code is:</p>

<pre><code>&lt;a href="#"&gt;&lt;img src="images/upload/Desert.jpg" data-largesrc="images/large/Desert.jpg" alt="image01"/&gt;&lt;span&gt;Crabbed Age and Youth&lt;/span&gt;&lt;/a&gt;
</code></pre>

<p>kindly give answer..</p>
