title: dynamic slider using PHP/Mysql & Nivo Slider
body: <p>i have box for dynamic images and desc slider using <a href="http://nivo.dev7studios.com/" rel="nofollow noreferrer">nivoslider</a> . now i have big problem -> my PHP code is  :</p>
  
  <pre><code>&lt;div id="slider" class="nivoSlider"&gt;
  &lt;?php 
  $featured = mysql_query("SELECT * FROM featured WHERE order &gt; 0 ORDER BY order ASC");
  $count_featured = mysql_num_rows($featured);
  
  if ($count_featured &lt; 1) { echo "error data" }
  while ($swcms = mysql_fetch_assoc($featured)) { ?&gt;
     &lt;img width="500" height="170" src="&lt;?php echo "$swcms[image]"; ?&gt;" title="#&lt;?PHP echo "$swcms[id]"; ?&gt;" alt="" border="" /&gt;
     &lt;div id="&lt;?PHP echo "$swcms[id]"; ?&gt;" class="nivo-html-caption"&gt;&lt;?PHP echo "$swcms[desc]"; ?&gt; &lt;/div&gt;
  &lt;?php $c++; }?&gt;    
  &lt;/div&gt;
  </code></pre>
  
  <p>This Worked 100% But in firebug i see many GET undefined  request after each slide : 
  <img src="https://i.stack.imgur.com/4Zwpy.png" alt="enter image description here"></p>
  
  <p>I found the problem; nivoslider worked with this method for show images/desc (caption):</p>
  
  <pre><code>&lt;div id="slider" class="nivoSlider"&gt;
  &lt;img src="..." title="#id" /&gt;
  &lt;/div&gt;
  &lt;div id="id" class="nivo-html-caption"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And my PHP loop is : </p>
  
  <pre><code>&lt;div id="slider" class="nivoSlider"&gt;
  &lt;img src="..." title="#id" /&gt;
  &lt;div id="id" class="nivo-html-caption"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I fix this PHP code for nivoslider loop? </p>
  
  <p>Thanks,
  Happy Christmas </p>