EX: if $keyword = "Windows 2000", and the search returns
Windows 2000
Windows 2000 Server
I want the "Windows 2000" portion of both highlighted, not just the "Windows 2000" one.
Right now I am using a very simple highlight function, just a simple little code string
Code: Select all
<?php
if ($_SESSION[keyword] == "$compatable_os" || $_SESSION[keyword] == ucfirst($compatable_os) || $_SESSION[keyword] == strtolower($compatable_os) || $_SESSION[keyword] == strtoupper($compatable_os)):
$compatable_os = "<span class = 'highlite'>$compatable_os</span>";
endif;
?>Any help is greatly appreciated.