close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Repeating table only showing one row

Thread began 9/09/2014 12:47 pm by iainmacdonald331081 | Last modified 9/09/2014 3:31 pm by Jason Byrnes | 596 views | 4 replies |

iainmacdonald331081

Repeating table only showing one row

I'm sure hits must be a simple one, but I've tried a few times and played around with the code, moving the repeating code, but can't get it to repeat more than the first row,

I have attached the page, and posted a link below.

Thanks.

Sign in to reply to this post

iainmacdonald331081

Just to say that that file is now index2.php on the website.

Sign in to reply to this post

Jason ByrnesWebAssist

your page is missing the repeat region.

edit lines 201 - 237:

<tr>
<?php
// RepeatSelectionCounter_1410281264347 Begin Loop
$RepeatSelectionCounter_1410281264347_IterationsRemaining = $RepeatSelectionCounter_1410281264347_Iterations;
while($RepeatSelectionCounter_1410281264347_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1410281264347 || $row_rs_Categories){
?>
<td>

<table id="categories_table" width="320px">
<tr>
<td><img src="../images/Icons/_new/<?php echo($row_rs_Categories['Icon']); ?>" width="42" height="42" alt="<?php echo($row_rs_Categories['Category']); ?>"/></td>
<td><h2><?php echo($row_rs_Categories['Category']); ?></h2></td>
<tr>
<tr>
<td colspan="2"><?php echo($row_rs_Categories['Description']); ?></td>
</tr>
<tr>
<td colspan="2"><a href="../2015_results/index.php?CategoryID=<?php echo(rawurlencode($row_rs_Categories['CategoryID'])); ?>"><?php echo($row_rs_Categories['Category']); ?> <!-- (<?php echo($row_rs_Categories['CategoryID']); ?>) --></a></td>
</tr>
</table>

</td>
<?php
} // RepeatSelectionCounter_1410281264347 Begin Alternate Content
else{
?>
<td>&nbsp;</td>
<?php } // RepeatSelectionCounter_1410281264347 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1410281264347 && $RepeatSelectionCounter_1410281264347_IterationsRemaining != 0){
if(!$row_rs_Categories && $RepeatSelectionCounter_1410281264347_Iterations == -1){$RepeatSelectionCounter_1410281264347_IterationsRemaining = 0;}
$row_rs_Categories = mysql_fetch_assoc($rs_Categories);
}
$RepeatSelectionCounter_1410281264347++;
} // RepeatSelectionCounter_1410281264347 End Loop
?>
</tr>




to:

<?php do { ?>
<tr>
<?php
// RepeatSelectionCounter_1410281264347 Begin Loop
$RepeatSelectionCounter_1410281264347_IterationsRemaining = $RepeatSelectionCounter_1410281264347_Iterations;
while($RepeatSelectionCounter_1410281264347_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1410281264347 || $row_rs_Categories){
?>
<td>

<table id="categories_table" width="320px">
<tr>
<td><img src="../images/Icons/_new/<?php echo($row_rs_Categories['Icon']); ?>" width="42" height="42" alt="<?php echo($row_rs_Categories['Category']); ?>"/></td>
<td><h2><?php echo($row_rs_Categories['Category']); ?></h2></td>
<tr>
<tr>
<td colspan="2"><?php echo($row_rs_Categories['Description']); ?></td>
</tr>
<tr>
<td colspan="2"><a href="../2015_results/index.php?CategoryID=<?php echo(rawurlencode($row_rs_Categories['CategoryID'])); ?>"><?php echo($row_rs_Categories['Category']); ?> <!-- (<?php echo($row_rs_Categories['CategoryID']); ?>) --></a></td>
</tr>
</table>

</td>
<?php
} // RepeatSelectionCounter_1410281264347 Begin Alternate Content
else{
?>
<td>&nbsp;</td>
<?php } // RepeatSelectionCounter_1410281264347 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1410281264347 && $RepeatSelectionCounter_1410281264347_IterationsRemaining != 0){
if(!$row_rs_Categories && $RepeatSelectionCounter_1410281264347_Iterations == -1){$RepeatSelectionCounter_1410281264347_IterationsRemaining = 0;}
$row_rs_Categories = mysql_fetch_assoc($rs_Categories);
}
$RepeatSelectionCounter_1410281264347++;
} // RepeatSelectionCounter_1410281264347 End Loop
?>
</tr>
<?php } while ($row_rs_Categories = mysql_fetch_assoc($rs_Categories)); ?>
Sign in to reply to this post

iainmacdonald331081

Thanks Jason - so add the repeat region, and then the repeating table?

Sign in to reply to this post

Jason ByrnesWebAssist

No adding the repeating table should have added the repeat region.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...