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

yikes! bug with sending emails to reverse order customers

Thread began 8/13/2014 10:39 am by Christopher West | Last modified 8/13/2014 1:59 pm by Christopher West | 331 views | 5 replies

Christopher WestCommunity Expert

yikes! bug with sending emails to reverse order customers

Hi I found out today after I was doing some testing which where I have a page in which the client selects customer orders from a list (checkbox select) What it does is updates their order status (Processing, Dispatched, Completed etc.) The updating of their order works through multiple checkbox selects. then its suppose to send those customers an email to tell them that their order has been updated....During testing I had 2 test orders I made with 2 different emails. when I selected my 2 orders it successfully updated the order record in the database, but I never received the email....HOWEVER I found out today that my client received an order update email and she also told me a customer had also receieved the same it appears that the system was sending out an email in the reverse (in other words it must have sent the emails to ALL UNCHECKED orders in the database! But how could this be possible?

the recordset i am using for selecting all checked emails is:

if (isset($_POST["Save"])) {
mysql_select_db($database_dinkydb, $dinkydb);
$query_rsOpenOrderEmail = "SELECT * FROM orders WHERE OrderID IN (".implode(", ",$_POST["order-reference"]).")";
$rsOpenOrderEmail = mysql_query($query_rsOpenOrderEmail, $dinkydb) or die(mysql_error());
$row_rsOpenOrderEmail = mysql_fetch_assoc($rsOpenOrderEmail);
$totalRows_rsOpenOrderEmail = mysql_num_rows($rsOpenOrderEmail);


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