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 to Results Page

Thread began 3/12/2015 5:23 pm by Cameron | Last modified 3/16/2015 12:36 pm by Cameron | 2144 views | 4 replies


It's returning something, which is a good thing, but not filtering. I changed the variable from ProductName to ProductMetaKeywords, since that is the area of products I am searching. Maybe that is the problem? Perhaps you can have a look here.
My search page form is as follows (very simplified pages):

<form class="" id="" name="" method="get" action="resultsTEST.php">
<fieldset class="" id="Search">
<input id="ProductMetaKeywords" name="ProductMetaKeywords" type="text" value="<?php echo((isset($_GET["ProductMetaKeywords"])?$_GET["ProductMetaKeywords"]:"")); ?>" class="formTextfield_Medium" tabindex="4" title="Please enter a value.">
<span class="buttonFieldGroup" >
<input type="submit" value="Search" class="formButton unstyled" id="Search" name="Search" />

My results page looks like this:

<?php require_once('Connections/MySQLi_CKS.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
$rsKeySearch = new WA_MySQLi_RS("rsKeySearch",$MySQLi_CKS,9);
$rsKeySearch->setQuery("SELECT * FROM products WHERE (ProductMetaKeywords = ? OR -1 = ?)");
$rsKeySearch->bindParam("s", "".$_GET['ProductMetaKeywords'] ."", "-1"); //paramProductMetaKeywords
$rsKeySearch->bindParam("s", "".$_GET['ProductMetaKeywords'] ."", "-1"); //paramProductMetaKeywords1
<!doctype html>
<meta charset="utf-8">
<title>Untitled Document</title>

while(!$rsKeySearch->atEnd()) {
Results:<?php echo($rsKeySearch->getColumnVal("ProductID")); ?><?php echo($rsKeySearch->getColumnVal("ProductName")); ?></div>
$rsKeySearch->moveFirst(); //return RS to first record


I'm just trying to get a simple search that will return results from the WebAssist ecommerce database filtering by input "included" in the keywords. Help?

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