View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

repeating regions for user history

Thread began 5/11/2009 8:40 pm by Phil137 | Last modified 5/18/2009 1:22 pm by Phil137 | 913 views | 1 replies

Phil137

repeating regions for user history

I am trying to make a repeating region within another repeating table I have for user shopping history.
First I have a repeating region referencing order details from a key column regarding a user's order ID.
The second part I am trying to set up is a repeating table of items placed under the user's unique order ID.
Here is what I have

<table id="WADAResultsTable" border="0" cellpadding="0" cellspacing="0">
<?php do { ?>
<tr>
<td width="594" >
<div class="WADAResultTitle">
<table width="642" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="111"><span class="red">Date ordered:</span></td>
<td width="248"><?php echo $row_WADAorderdetails['DetailDate']; ?></td>
<td width="47" class="red">Status:</td>
<td width="236"><?php echo $row_WADAorderdetails['DetailOrderStatus']; ?></td>
</tr>
<tr>
<td><span class="red">Tracking Number:</span></td>
<td><?php echo $row_WADAorderdetails["DetailTrackNumber"]; ?></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<table width="570" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="193" align="left" valign="top" bgcolor="#CECECE">&nbsp;</td>
<td width="208" colspan="-1" align="left" valign="top" bgcolor="#CECECE">Item:</td>
<td width="180" colspan="-1" align="left" valign="top" bgcolor="#CECECE">Quantity:</td>
<td width="180" colspan="-1" align="left" valign="top" bgcolor="#CECECE">Price:</td>
</tr>
<tr>
<td colspan="4" align="left" valign="top"><?php do { ?>
<table width="200" border="0">
<tr>
<td>&nbsp;</td>
<td><?php echo $row_WADAorderdetails["DetailItemName"]; ?></td>
<td><?php echo $row_WADAorderdetails['DetailQuantity']; ?></td>
<td><span class="WADAResultPrice"><?php echo $row_WADAorderdetails["DetailPrice"]; ?></span></td>
</tr>
</table>

<?php } while ($row_WADAorderdetails = mysql_fetch_assoc($WADAorderdetails)); ?></td>
</tr>
<tr>
<td colspan="4" align="left" valign="top">(Total for order ID <?php echo $row_WADAorderdetails['DetailOrderID']; ?> is $<?php echo $row_WADAorderdetails['DetailOrderTotal']; ?>)</td>
</tr>
</table>


<p>&nbsp;</p>
</div></td>
</tr>
<?php } while ($row_WADAorderdetails = mysql_fetch_assoc($WADAorderdetails)); ?>
</table>


I am having trouble filtering the items ordered by the user to match the unique order ID. I would appreciate any suggestions.
Thanks
Phil

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...