close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

customer recordset used to update multiple orders...need to work out how to send email to all those customers...

Thread began 2/12/2014 1:25 am by Christopher West | Last modified 2/12/2014 2:10 pm by Christopher West | 542 views | 7 replies

Christopher WestCommunity Expert

customer recordset used to update multiple orders...need to work out how to send email to all those customers...

Hi. ok well after Ray helping me solve how to update multiple orders using checkboxes...I was wondering how I could also send out order updates to the corresponding emails that belong to the orders I had updated...

The custom code for the record uses an array implode...

php:
<?php

if (isset($_POST["Save"])) {
  
mysql_select_db($database_dinkydb$dinkydb);
  
$query_rsOrderDispatched "UPDATE orders SET OrderProcess = '".$_POST["order-update"]."' WHERE OrderID IN (".implode(", ",$_POST["order-reference"]).")";
  
mysql_query($query_rsOrderDispatched$dinkydb);
}
?>



Now is it a case of still using the Universal Email server behaviour and using the option:RecordSet Loop from the "To Settings" option in the Universal Email and then selecting my recordset for rsOrderDispatched? Or would it require a completely customised email sending function?

Im guessing that may not work as I already have another recordset called rsOrderDispatched has no filters since its used to display a record count (ok just thought that's a sloppy coding method using 2 recordsets the same name)

mysql_select_db($database_dinkydb, $dinkydb);
$query_rsOrderDispatched = "SELECT * FROM orders WHERE OrderProcess = 'Order Dispatched'";
setQueryBuilderSource($query_rsOrderDispatched,$WADA_Sort_1,false);
setQueryBuilderSource($query_rsOrderDispatched,$WADbSearch1,false);
$rsOrderDispatched = mysql_query($query_rsOrderDispatched, $dinkydb) or die(mysql_error());
$row_rsOrderDispatched = mysql_fetch_assoc($rsOrderDispatched);
$totalRows_rsOrderDispatched = mysql_num_rows($rsOrderDispatched);



Chris

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