Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8326121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:39:53+00:00 2026-06-09T00:39:53+00:00

I have a repeat region question. What I’m trying to do here is repeat

  • 0

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.

<?php 
$idname = "fragment-";
$idnum = 1;
echo $idname . $idnum;
?>

<?php do { ?>
<div id="<?php for($idnum=1;$idnum<=5;$idnum++){

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

This is the current output of the code..

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

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:39:56+00:00Added an answer on June 9, 2026 at 12:39 am
    <?php 
    $idnum = 1;
    
    do { ?>
    <div id="fragment-<?php echo $idnum; ?>" class="ui-tabs-panel" style="">
            <?php $idnum++; ?>
            <img src="<?php echo $row_getDisplay['picture']; ?>" alt="" />
            <div class="info" >
                <h2><a href="fetch?id=<?php echo $row_getDisplay['post_id']; ?>" ><?php echo $row_getDisplay['title']; ?></a></h2>
                <p><?php echo $row_getDisplay['preview']; ?><a href="fetch?id=<?php echo $row_getDisplay['post_id']; ?>" >Click Here</a></p>             
            </div>
            </div>
    <?php } while ($row_getDisplay = mysql_fetch_assoc($getDisplay)); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have been trying to learn PHP Repeat Region... i have searched google but
How can I have SQL repeat some set-based operation an arbitrary number of times
I have the following sql query SELECT * FROM jos_jcalpro_events AS e LEFT JOIN
I wrote the following loop since I have to repeat the same/similar code 25
I have created a repeat control that list some documents. I would like to
I have a simple 'repeat with' in an AppleScript, and would like to move
I have a ListBox and I need to repeat the styles to be the
i have used following code to repeat a process creation/close iteratively dim vProcessInfo as
I have an EditBox control in a repeat control. Its iteration formula is: return
I have a client report (rdlc) and want to repeat some textboxes in every

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.