close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Select which records to Multiple Update

Thread began 6/29/2010 5:19 am by phebberd116714 | Last modified 7/26/2010 3:16 pm by phebberd116714 | 1419 views | 5 replies


Not quite understanding the process

Hi Eric,
Thanks for the reply. I'm not understanding the process so the search isn't working. All the record still show up.
This is what I have done so far –

I added the check box to each item (am not sure what you meant by add in brackets after the name of the checkbox).
Here is the code for the checkbox –

<input name="product_id" type="checkbox" id="product_id" value="<?php echo $row_WADAwProd_Bread['product_id']; ?>" />

At the bottom of the list is a text link that goes to the multiple update page –

<a href="wBread_updateMulti.php?product_id=<?php echo((isset($_POST["product_id"]))?$_POST["product_id"]:"") ?>">Update Multiple Records</a>

Not sure if I need the parameters!

This is where I am not understanding the search behaviour.
I added the following using the DatataAssist Search behaviour. It is at the top before the update code –

//WA Database Search (Copyright 2005,
//Recordset: rsProdBread;
//Searchpage: ;
//Form: ;
$WADbSearch1_DefaultWhere = "";
if (!session_id()) session_start();
$WADbSearch1 = new FilterDef;
//keyword array declarations

//comparison list additions
$WADbSearch1->addComparisonFromList("product_id","".$row_rsProdBread['product_id'] ."","AND","=",0);

//save the query in a session variable
if (1 == 1) {
else {
$WADbSearch1 = new FilterDef;
//get the filter definition from a session variable
if (1 == 1) {
if (isset($_SESSION["WADbSearch1_wBread_updateMulti"]) && $_SESSION["WADbSearch1_wBread_updateMulti"] != "") {
$WADbSearch1->whereClause = $_SESSION["WADbSearch1_wBread_updateMulti"];
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
$WADbSearch1->whereClause = str_replace("\\''", "''", $WADbSearch1->whereClause);
$WADbSearch1whereClause = '';

Do you need any more information? Or can you see where I have made errors.

Regards, Peter

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