Done it.
Code:
"SELECT " . TABLE_PRODUCTS_DESCRIPTION . ".products_name, " . TABLE_PRODUCTS . ".products_quantity
Code:
$prodquantity = ($dbProducts->fields['products_quantity']);
$prodResult = strip_tags($dbProducts->fields['products_name']);
if (strtolower(substr($prodResult,0,strlen($wordSearch))) == strtolower($wordSearch)){
$results[] = array(
//we have 4 seperate variables that will be passed on to instantSearch.js
//'q' is the result thats been found
//'c' is the number of item within a category search (we leave this empty for product search, look at the example bellow for category search)
//'l' is used for creating a link to the product or category
//'pc' lets us know if the word found is a product or a category
'q'=>$prodResult,
'c'=>$prodquantity,
'l'=>$dbProducts->fields['products_id'],
'pc'=>"p"
);
}else{
$resultsAddAfter[] = array(
'q'=>$prodResult,
'c'=>$prodquantity,
'l'=>$dbProducts->fields['products_id'],
'pc'=>"p"
yay
Bookmarks