my code for changing variable in a repeat region needs revising
<p>I have a repeat region question. What I'm trying to do here is repeat information from a query until it runs out. I have it the limit set at 5. I want the information to repeat but have the DIV id change as it repeats. Is this at all possible? What I'm trying to create here is a featured jquery slider and to do so I need what is being displayed to pull on of these into the mainbox as it slides through or is clicked on. Thanks in advance. </p>

<pre><code>&lt;?php 
$idname = "fragment-";
$idnum = 1;
echo $idname . $idnum;
?&gt;

&lt;?php do { ?&gt;
&lt;div id="&lt;?php for($idnum=1;$idnum&lt;=5;$idnum++){

echo $idname . $idnum++; break;}?&gt;" class="ui-tabs-panel" style=""&gt;
            &lt;img src="&lt;?php echo $row_getDisplay['picture']; ?&gt;" alt="" /&gt;
             &lt;div class="info" &gt;
                &lt;h2&gt;&lt;a href="fetch?id=&lt;?php echo $row_getDisplay['post_id']; ?&gt;" &gt;&lt;?php echo $row_getDisplay['title']; ?&gt;&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;&lt;?php echo $row_getDisplay['preview']; ?&gt;&lt;a href="fetch?id=&lt;?php echo $row_getDisplay['post_id']; ?&gt;" &gt;Click Here&lt;/a&gt;&lt;/p&gt;             &lt;/div&gt;
        &lt;/div&gt;
&lt;?php } while ($row_getDisplay = mysql_fetch_assoc($getDisplay)); ?&gt;
</code></pre>

<p>This is the current output of the code..</p>

<pre><code>&lt;div id="fragment-1" class="ui-tabs-panel" style=""&gt;
            &lt;img src="images/archives/2012/july/1343579505.jpg" alt="" /&gt;
             &lt;div class="info" &gt;
                &lt;h2&gt;&lt;a href="fetch?id=39" &gt;Testing Preview Box Character Count max out on the total number&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;Other things have to go here to show the preview seems like other things don't really fit&lt;a href="fetch?id=39" &gt;Click Here&lt;/a&gt;&lt;/p&gt;            &lt;/div&gt;
        &lt;/div&gt;
</code></pre>
