facing problem while searching a keyword from the mysql database
the fuction is dispayed below and i need the word "celllabs & Co., Inc." to displayed in the search results.
can you correct the code below
function returnUnitSearch($details)
{
$newArray = array_keys($details);
for ($i=0;$i<count($newArray)-2;$i++)
{
$strVal = $newArray[$i];
$newStr = str_replace("_"," ",$strVal);
$newStr1 = str_replace("("," ",$newStr);
$newStr2 = str_replace(")"," ",$newStr1);
$modifiedStr = strtolower($newStr2);
$searchCriteriaNew = $searchCriteriaNew."+".$modifiedStr;
}
$searchCriteria1 = $searchCriteriaNew;
$arrayUnit = explode("+",$searchCriteria1);
$searchUnits = null;
for ($i = 0; $i < count($arrayUnit); $i++)
{
if ($arrayUnit[$i] != '')
$searchUnits = $searchUnits.",'".$arrayUnit[$i]."'";
}
$finalUnitSearch = substr_replace($searchUnits, "", 0, 1);
return $finalUnitSearch;
}