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

MySqli update value with itself + new

Thread began 11/19/2019 1:25 pm by paulshoe379536 | Last modified 11/20/2019 5:06 pm by paulshoe379536 | 132 views | 5 replies


The code you gave me has been working. However, when I attempt to open it in Dreamweaver's server behaviors I get an error message (attached JPG). If I save the code using the "OK" button in the dialog box it changes the code and the error message will not reoccur but the update quits working. I have added the update statements the first is the code you sent me (which is working), the second is the Dreamweaver updated code.
$ExecuteQuery->Statement = "UPDATE customer_orders SET customer_orders.OrderTotals = customer_orders.OrderTotals + " . $OnlineOrders->getColumnVal('OrderSubTotal') ." WHERE customer_orders.Email = '". $OnlineOrders->getColumnVal('OrderEmail') ."'";

$ExecuteQuery->Statement = "UPDATE customer_orders SET customer_orders.OrderTotals = customer_orders.OrderTotals + \" . $OnlineOrders->getColumnVal('OrderSubTotal') .\" WHERE customer_orders.Email = '". $OnlineOrders->getColumnVal('OrderEmail') ."'";

Here are my questions:

Why am I getting this error message and why does Dreamweaver give me a version that fails? Is this an issue of the sequence of single and double quotes?

Also, I need to add another SET to the update. I need to SET customer_orders.LastOrderDate = $OnlineOrders->getColumnVal('OrderDate') and I haven't been able to get the syntax right to add that into your code.

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