close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

User info on Orders Detail Page

Thread began 12/23/2009 1:41 pm by vmartinez310076 | Last modified 12/28/2009 2:52 pm by Jimmy Wu | 1642 views | 5 replies |

vmartinez310076

User info on Orders Detail Page

In the admin section I have the orders_detail.php page showing the ship to info and the order info. My problem is that I want to also display the customer billing info on the same orders_detail.php page.

The OrderUserID is being passed from the orders table, I just can't get the user info to show.

Any help will be greatly appreciated.

Sign in to reply to this post

Jimmy Wu

If you've stored the billing information in the database, you can create a recordset that queries for the information based on the OrderUserID. Then you can drag and drop the values you want from the Bindings panel for that recordset to display the information needed.

Sign in to reply to this post

vmartinez310076

Yes Thank you. The problem I think is that the OrderUserID is in the Order table and UserID is in the User table.

I am able to display the OrderUserID on the results_Detail.php page, but the user recordset query is not picking it up.

Filter: userID = Session Variable OrderUserID

Any ideas?

Sign in to reply to this post

Jimmy Wu

What's the recordset look like that you are trying to get the user info with?

Sign in to reply to this post

vmartinez310076

The page has 3 recordsets.

users, orders and orderDetails

the orderDetails has the OrderUserID field that has the userID info from the users recordset.

When I write the query userID = session value OrderUserID it does not display any user info.

Sign in to reply to this post

Jimmy Wu

When you create a recordset, the SQL query will be written out something like this:
$query_Recordset1 = "SELECT * FROM users";

You want to modify this to look something like this:
$query_Recordset1 = sprintf("SELECT * FROM users WHERE userID = %s", GetSQLValueString($_SESSION['OrderUserID'], "int"));

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