close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Order Status not changing on Order Results Page

Thread began 2/18/2010 9:28 pm by nenad391153 | Last modified 3/12/2010 10:38 pm by nenad391153 | 962 views | 7 replies

Eric Mittman

Ok, I can see why all of the statuses show the same, it is because this value is coming from a different recordset than the other info in the repeat region. The status is coming from rsStatus, the other information is coming from WADAorders. To fix this you will need to use the status binding from this WADAorders recordset instead. Currently the WADAorders recordset does not have this info, so you would need to update it with a join. It might look like this:

$query_WADAorders = "SELECT orders.OrderDate, orders.OrderID, orders.OrderShipName, orders.OrderAmount, orders.OrderStatus orderstatustypes.StatusLabel FROM orders 

JOIN orderstatustypes ON orders.OrderStatus = orderstatustypes.StatusID

I'm not sure about the id name in your orderstatus table, you may need to update this. Make sure that you make a backup of your page before you attempt making any changes. There is another way you could do this, you could put the code for the rsStatus inside of the repeat region like this:

// repeat region start

if (isset(
$row_WADAorders['OrderStatus'])) {
$MMColParam_rsStatus = (get_magic_quotes_gpc()) ? $row_WADAorders['OrderStatus'] : addslashes($row_WADAorders['OrderStatus']);
$query_rsStatus sprintf("SELECT * FROM orderstatustypes WHERE StatusID = %s"GetSQLValueString($MMColParam_rsStatus"text"));
$rsStatus mysql_query($query_rsStatus$connPMTecommerce) or die(mysql_error());
$row_rsStatus mysql_fetch_assoc($rsStatus);
$totalRows_rsStatus mysql_num_rows($rsStatus);
//begin displaying info

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