Un-defined variable error
<p>Since, I am new to PHP and couldn't resolve undefined variable error in this code..<br>
The error is: <code>Notice: Undefined variable: row in C:\wamp\www\shopping\products.php</code>   </p>

<p>Code:</p>

<pre><code>    &lt;?php
        $result=mysql_query("select * from products");
        while($row=mysql_fetch_array($result)){
    ?&gt;
    &lt;tr&gt;
        **&lt;td&gt;&lt;img src="&lt;?=$row['picture']?&gt;" /&gt;&lt;/td&gt;**
        &lt;td&gt;    **&lt;b&gt;&lt;?=$row['name']?&gt;&lt;/b&gt;&lt;br /&gt;**
                **&lt;?=$row['description']?&gt;&lt;br /&gt;**
                Price:&lt;big style="color:green"&gt;
                    **$&lt;?=$row['price']?&gt;&lt;/big&gt;&lt;br /&gt;&lt;br /&gt;**
                **&lt;input type="button" value="Add to Cart" onclick="addtocart(&lt;?=$row['serial']?&gt;)" /&gt;**
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;&lt;td colspan="2"&gt;&lt;hr size="1" /&gt;&lt;/td&gt;
    &lt;?php } ?&gt;
</code></pre>
