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

Search Results not showing

Thread began 1/20/2014 4:24 pm by joerg431091 | Last modified 1/24/2014 10:21 am by joerg431091 | 885 views | 8 replies


Search Results not showing

I have created a search form on one of our websites but the search results don’t show. What drives me crazy is that I have done the exact same (at least I thought so) on a different website and it works great. Even if I re-direct the form action to that other website, it works but if I leave it pointing just to products_Results.php it does not. So I suspect I must have something wrong in the Search Result Server Behavior on the products_Results.php page.

I tried to use the search wizard as well as the search tutorial but seem to always miss something. Any pointers are very much appreciated.

Here is my search form:

<form action="products_Results.php" method="get" name="WADASearchForm" id="WADASearchForm" class="search-form">
<input type="submit" value="Search" class="search-submit-button" />
<input type="text" placeholder="Search..." value="" name="ProductMetaKeywords" id="ProductMetaKeywords" class="search-text-box" />
<input type="Hidden" name="Search" id="Search" value="Search" />

Here is the Server Behavior for the DataAssist Search (WADAproducts) on the products_results.php page:

//WA Database Search (Copyright 2005,
//Recordset: WADAproducts;
//Searchpage: products_search.php;
//Form: WADASearchForm;
$WADbSearch1_DefaultWhere = "";
if (!session_id()) session_start();
if (isset($_GET["Search"]) || isset($_GET["Search_x"])) {
$WADbSearch1 = new FilterDef;
//keyword array declarations

//comparison list additions

//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_products_results"]) && $_SESSION["WADbSearch1_products_results"] != "") {
$WADbSearch1->whereClause = $_SESSION["WADbSearch1_products_results"];
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
$WADbSearch1->whereClause = str_replace("\\''", "''", $WADbSearch1->whereClause);
$WADbSearch1whereClause = '';

The exact same configuration works perfectly on one of our other websites. The main difference between the 2 products_results.php pages (the one on the site that works and the current one that does not) is the Recordset (WADAproducts) server behavior. Not sure whether this has something to do with this but wanted to mention it.

Any ideas are greatly appreciated.


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