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

Creating an Order History Page

Thread began 1/11/2010 2:20 pm by dan377928 | Last modified 8/05/2011 2:30 pm by johna1964 | 3785 views | 40 replies |

dan377928

Creating an Order History Page

The training document is asking me to enter a parameter for {WADAorders.OrderID} after following the steps very carefully I am not able to get the property inspector to allow a parameter to be entered.

Sign in to reply to this post

Jason ByrnesWebAssist

What happens when you try to add the parameter? Do you get an error?

Please provide more details so we can try to assist.

Sign in to reply to this post

dan377928

Originally Said By: Jason Byrnes
  What happens when you try to add the parameter? Do you get an error?

Please provide more details so we can try to assist.  



There is no parameter to add.

Sign in to reply to this post

Jason ByrnesWebAssist

You can only create the parameter while selecting the page the link goes to.

in the property inspector, click the folder Icon next to link. Select the page that the link goes top, before clicking the OK button, click the parameter button to create the link parameters.

Sign in to reply to this post

dan377928

My Sql statement is returning an error and not letting me add a binding from the WADAorderdetails Recordset

SELECT orders.*, orderdetails.*
FROM FROM orders INNER JOIN orderdetails ON orders.OrderID = orderdetails.DetailOrderID
WHERE orderdetails.DetailOrderID = WADAOrderID AND orders.OrderUserID = paramUserID

see attached for the sql error

Sign in to reply to this post

Jason ByrnesWebAssist

You have the word FROM in the query twice:
FROM FROM orders INNER JOIN...

The SQL should be:
SELECT orders.*, orderdetails.*
FROM orders INNER JOIN orderdetails ON orders.OrderID = orderdetails.DetailOrderID
WHERE orderdetails.DetailOrderID = WADAOrderID AND orders.OrderUserID = paramUserID

Sign in to reply to this post

dan377928

That did it, very embarrassing.

Now that i have finished my page returns the error

Unknown column 'WADAOrderID' in 'where clause'

Sign in to reply to this post

dan377928

removed WADA in front of orderid and seems fine now however my page is not returning any results although i am logged in and have orders under m userid

Sign in to reply to this post

Jason ByrnesWebAssist

Create a new parameter in the recordset:
Name: WADAOrderID
Type: Number
Default Value: -1
Run Time value: $_GET['OrderID']

Sign in to reply to this post

dan377928

Script seems to be fine now although when i test no results are returned. Page is published and have orders under a userid but again no results are returned. the published Page displays
"No results for your search"

Sign in to reply to this post
loading

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