close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Trying to join the order table and order detail together on the detail page

Thread began 2/03/2010 11:50 am by sturgisk383938 | Last modified 2/04/2010 9:51 am by sturgisk383938 | 1876 views | 3 replies


Trying to join the order table and order detail together on the detail page

I trying to create an order history and detail page to my site. When I test the pages I can get the history page to display information but when I click the link to see the detail page. I get an sql sytax error was is, You have an error in your SQL syntax; check the manual that corresponds to your MYSQL server version for the right syntax to use near 'FROM orders INNER JOIN -1 ON orders.OrdersID = -1.DetailOrdersID WHERE -1.DetailO' at line 1.

I have followed the instruction posted on your web site regarding how to create an order history page. I tried to change the WADAorderdetails server behavior for the detail page.

I entered the code to join the orders and ordersdetails tables as follows:
SELECT orders.*, orderdetails.*
FROM orders INNER JOIN orderdetails ON orders.OrderID = orderdetails.DetailsOrderID
WHERE orderdetails.DetailOrderID = WADAOrderID AND order.OrderUserID = paramUserID

I did add the variable parameter paramUserID. My question is for the first variable parameter was colname. What should the first variable name be? What did I do wrong?


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





Ease of use


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