close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search results wrong from DataAssist Search Wizard

Thread began 4/25/2013 10:02 pm by mrs | Last modified 4/26/2013 10:03 am by Jason Byrnes | 316 views | 3 replies |

mrs

Search results wrong from DataAssist Search Wizard

I have run the DataAssist search wizard from the menu WebAssist/Database/DataAssist Search Wizard, and the wizard seemed to have worked fine, but the results page is displaying ALL records within my DB table no matter what I search for.

What has happened? Pages attached.

Thanks.

Sign in to reply to this post

CraigRBeta Tester

no pages attached ?!

Sign in to reply to this post

mrs

Right, I have just realised that I have applied the search wizard to the search page rather than the results page!!! DOH

So, I have now tried to apply the wizard to the results page and am now getting a error from the search results page. Prior to running the wizard, I did test the page to make sure that the page populated with content, and all was OK. Now, either from a search or directly typing the address in, I am getting the following error:

Fatal error: Call to undefined function setQueryBuilderSource() in /Users/matthewstuart/Sites/ktc/forum_search_results.php on line 124

I have added the pages again and removed the previous versions I uploaded earlier.

Attached Files
forum_search_box.php
forum_search_results.php
Sign in to reply to this post

Jason ByrnesWebAssist

move the search code at lines 188 - 228:

php:
<?php require_once("webassist/database_management/wada_search.php"); ?>

<?php
//WA Database Search (Copyright 2005, WebAssist.com)
//Recordset: WADAtbl_forumPOSTS;
//Searchpage: forum_search_box.php;
//Form: searchform;
$WADbSearch1_DefaultWhere "";
if (!
session_id()) session_start();
if ((isset(
$_POST["WADbSearch1"])) && ($_POST["WADbSearch1"] != "")) {
  
$WADbSearch1 = new FilterDef;
  
$WADbSearch1->initializeQueryBuilder("MYSQL","1");
  
//keyword array declarations
  
$KeyArr0 = array("fld_fID""fld_fHEADING""fld_fCTNT""fld_fCAP1""fld_fCAP2""fld_fCAP3""fld_fCAP4""fld_fCAP5""UserFirstName""UserLastName""UserScreenName");

  
//comparison list additions
  
$WADbSearch1->keywordComparison($KeyArr0,"".((isset($_POST["searchbox"]))?$_POST["searchbox"]:"")  ."","AND","Includes",",%20","%20","%22","%22",0);

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



to line 20 so it is before the recordset.

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

Content

rating

Layout

rating

Ease of use

rating

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