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


Ability to add more than one filter to update / delete SB's

Thread began 7/03/2017 8:48 am by Dave Buchholz | Last modified 7/12/2017 12:05 pm by Ray Borduin | 255 views | 2 replies |

Dave BuchholzBeta Tester

Ability to add more than one filter to update / delete SB's

It would be nice to have the option to be able to add more than one filter field in the wizard. It works when add them by hand e.g.

$UpdateQuery = new WA_MySQLi_Query($connMySQLi);
$UpdateQuery->Action = "update";
$UpdateQuery->Table = "tbl_store_models_info";
$UpdateQuery->bindColumn("sell_code", "s", "".$rsMoveModelInfo->getColumnVal('sell_code') ."", "WA_IGNORE");
$UpdateQuery->bindColumn("store_SKU", "s", "".$rsMoveModelInfo->getColumnVal('store_SKU') ."", "WA_IGNORE");
$UpdateQuery->bindColumn("tstampupdate", "i", "".$rsMoveModelInfo->getColumnVal('tstampinsert') ."", "WA_DEFAULT");
$UpdateQuery->bindColumn("dateupdate", "t", "".date('Y-m-d', $rsMoveModelInfo->getColumnVal('tstampinsert')) ."", "WA_DEFAULT");
$UpdateQuery->bindColumn("adminupdate", "i", "".$rsMoveModelInfo->getColumnVal('adminID') ."", "WA_DEFAULT");
$UpdateQuery->addFilter("SKU", "=", "s", "".$rsMoveModelInfo->getColumnVal('SKU') ."");
$UpdateQuery->addFilter("storeID", "=", "i", "".$storeID .""); // extra filter

But when I print the SQL statement to the page using

print "<p>".$UpdateQuery->debugSQL(); // print sql to page

It actually prints the filter values the wrong way round e.g.

UPDATE tbl_store_models_info SET `store_SKU` = , `tstampupdate` = 741, `dateupdate` = 1499078976, `adminupdate` = 2017-07-03 WHERE `SKU` = 7 AND `storeID` = JGB635DEKBB

i.e. JGB635DEKBB is the SKU & 7 is the storeID but it works and everything is entered in the DB correctly


Dave Buchholz
I-CRE8 Limited

Sign in to reply to this post

Ray BorduinWebAssist

The server behaviors are for simple applications. There are always going to be more options when hand coding. I'll investigate the issue with the debugSQL. That function uses a completely different logic than the actual run-time code, so it shouldn't be of concern that it is backwards, but obviously it would be more helpful if it were accurate, so I'll get that fixed.

Sign in to reply to this post

Dave BuchholzBeta Tester

ok, thanks Ray

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





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