php list loop div error
<p>New to php. Trying to create a list of images with text in a loop. The script works fine with just , but I want to add a class name  to it so that I can control it with css, but I am getting an error. Seems not to flow cleanly with HTML. Any suggestions?</p>

<pre><code>$rs = $conn-&gt;Execute("SELECT ProductName, ProductID FROM Products ");
//opens a recordset from the connection object

while (!$rs-&gt;EOF) {
  $fv1=$rs-&gt;Fields("ProductID");
  $fv2=$rs-&gt;Fields("ProductName");
  print "&lt;div class="product-img"&gt; ";
  print "&lt;a href='moredetails.php?productid=$fv1'&gt;";
  print "&lt;img src = \"thumbs/artifact-$fv1.jpg\" alt = \"Artifact-$fv1\"&lt;/a&gt;&lt;br&gt;";
  print "&lt;a href='moredetails.php?productid=$fv1'&gt;";
  print "$fv2&lt;/a&gt;&lt;br&gt;";
  print "&lt;/div&gt;";
  $rs-&gt;MoveNext();
} 
$rs-&gt;Close(); 
</code></pre>
