close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Order Details page for users

Thread began 1/27/2011 1:19 pm by mrobben375515 | Last modified 1/31/2011 1:21 pm by Jason Byrnes | 1677 views | 5 replies |

mrobben375515

Order Details page for users

I'm trying to create and order details page for the admin of schools to check for yearbook orders. I want it to query the orders based on the productID which is the yearbook for each school (session variable school_PID). So if someone logs in and their school is productID 2 then only orders with that product ID are shown. I tried to take the orders_Results page from the admin folder and rename it, and changed the Recordset but I'm getting a sql error which I've copied below. I've attached the page with what I have. Thanks

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 'SELECT* FROM orderdetails WHERE DetailProductID = -1 AND (OrderShipped >= '0') ' at line 1

Attached Files
school_orders.zip
Sign in to reply to this post

Dani Chankhour

Try changing this query from:

SELECT DISTINCT ps3_orders.* FROM ps3_orders LEFT OUTER JOIN ps3_orderdetails ON OrderID = DetailOrderID SELECT* FROM orderdetails WHERE DetailProductID = %s

to

SELECT * FROM orderdetails WHERE DetailProductID = %s

Sign in to reply to this post

mrobben375515

I'm getting this error now.

Unknown column 'OrderShipped' in 'where clause'

I've attached the page below. Thanks

Attached Files
school_orders.zip
Sign in to reply to this post

Jason ByrnesWebAssist

your query should be:
SELECT DISTINCT ps3_orders.* FROM ps3_orders LEFT OUTER JOIN ps3_orderdetails ON ps3_orders.OrderID = ps3_orderdetails.DetailOrderID WHERE ps3_orderdetails.DetailProductID = %s

Sign in to reply to this post

mrobben375515

I got it working, but when I tried to switch the template it started giving me this error.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/50/7015650/html/school_orders.php:1) in /home/content/50/7015650/html/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3

Can I stick with the new template, or do I have to change it back? I've attached the file again.

Attached Files
school_orders.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Go to modify -> Page Properties.


in the title and encoding section, make sure the option to Include Unicode Signature (BOM) is not checked.

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