close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Order & OrderDetails Database Shipping Fulfilment Reports

Thread began 12/29/2009 3:24 pm by Kevin373660 | Last modified 12/30/2009 9:58 am by Kevin373660 | 1341 views | 1 replies

Eric Mittman

I think the best way to implement this type of listing would be in a details page that is linked to from an orders results page.

If you ahve a results page for orders already then you just need to add in a page for the order details. The idea is that this details page would have a recordset on it that would select all from the order details table where the order id matches the selected order from the order results page.

How you craft this is to make a link out of the order number on the order results page. This link will go to your new details page. In this link you will need to pass along the order id.

Next you create the details page that has the recordset on it. This recordset will be filtered on your URL parameter that you added to the link on the order results page.

With the page setup like this you will be able to select an order and on this details page you will see all of the items and prices for that order. If you would also like to show all of the info from the order table you can do that also, you will need to update the query though.

To view all of the info you would need to have a join query that joins the orders and order details table on the order id, it would look something like this:

SELECT * FROM order_details
JOIN order ON order_details.orderID = orders.orderID
WHERE order_details.orderID = <your URL parameter>



This would allow you access to the info from the order record as well as the details of the order.

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