echo function with the html tags
<p>I want to create tags using echo function but I'm stuck here; I dont know how to make it through.</p>

<p>This is what I want to do:</p>

<pre><code>echo "&lt;img src=$row['one'] style="width:100px"/&gt;" ;
</code></pre>

<p>(Note: <code>$row['one']</code> is a variable of php script and that contains the path of the image), but it throws me these error:</p>

<pre><code>Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\im.php on line 13
</code></pre>

<p>I want these statement to execute in php and I tried this way too:</p>

<pre><code>echo '&lt;img src=$row['one'] styel="width:100px" /&gt;';
</code></pre>

<p>These time I get the error:</p>

<pre><code>Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\im.php on line 13
</code></pre>

<p>I know where the error is. The error is most probably here </p>

<pre><code>'&lt;img src=$row[' //here's the error, right?
</code></pre>

<p>I worked on c and quite some other languages.  I know that in c, to use double quotes in the printf we follow up some syntax but I dont know what to do in php.</p>
