How should i allow bolding of keywords instead of just one..
It is to say if i were to search "PHP HELP", it should bold both "PHP" and "HELP" .
// Get the search variable from URL
$var = @$_GET['q'] ;
//trim whitespace from the stored variable
$trimmed = trim($var);
//separate key-phrases into keywords
$trimmed_array = explode(" ",$trimmed);
$aircraftTailNo = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '1' ] );
$aircraftType = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '2' ] );
$servicingType = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '3' ] );
$airFrameHours = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '4' ] );
$defectInfo = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '5' ] );
$rectifications = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '6' ] );
$comments = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '7' ] );
$relatedDoc = preg_replace ( "'($var)'si" , "<b>$trimm</b>" , $row_linkcat[ '8' ] );