Please Help with Text highlighting in search results:
The function should be
str_replace( $term, “”.$term."", $search_results );
I need to enter the above code into the code source
the search type is like
(search engine gets db results, the type of source)
[code] $searchquery=“select * from site where (name like’%$term%’ or url like’%$term%’ or desc
like’%$term%’) and credits > 0 and state = ‘Enabled’ order by credits DESC limit $start,$resultperpage”;
//echo $searchquery;
$result=mysql_query($searchquery);
if(mysql_num_rows($result)!=0){
for($x=0;$x<mysql_numrows($result);$x++){
echo(" “.mysql_result($result,$x,‘name’).”
“.mysql_result($result,$x,‘desc’).” ");
[/code]
I am not sure what to enter into the $search_results to work with the search engine script, maybe $searchquery but i tried.
can you help me my power is gone
Thank You,
Thomas