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 Search Question - using Comma Sepeated List

Thread began 2/24/2019 11:24 am by Dave Buchholz | Last modified 2/26/2019 12:09 pm by Dave Buchholz | 95 views | 5 replies

Dave BuchholzBeta Tester

Updating my code like so and it works perfectly

$products_cookie = json_decode($_COOKIE['compare-products'], true);
$allKeys = array_keys($products_cookie); // see
$allKeys = str_replace('ITEM-','',$allKeys); // see
$productIDCollection = implode(', ',$allKeys);
$searchrsDataSet_1 = new WA_MySQLi_Search("rsDataSet","0=0");
if (true) {
$searchrsDataSet_1->setSearch(array("type"=>"Key", "comparison"=>"=", "join"=>"AND", "or"=>", ", "or"=>" ", "start_encap"=>"\"", "end_encap"=>"\""), array("id"), "i", "".$productIDCollection ."");

Thanks Ray that put me on the right track, it never occurred to me to use a Keyword search for an integer.

Just as a FYI the wizard doesn't give me a choice for integer only Text, Number Boolean or Date and when I choose Number/Boolean it inserts a "d" rather than what I think should be an "i" as the identifier for the type of field it is looking for. Is that correct as I always go back and modify it to an "i" by hand afterwards.

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