this is my search function. if i search for a word it will return any blog entry that has that word. it'd be cool if i could get it to return the entire entry (like it already does) but with the word that was searched for in bold. could anyone show me a way to do that?PHP Code:
<?php
//get the results and store them in $result
$result = mysql_query ("SELECT * FROM news WHERE storytext LIKE '%$search%'");
//run the while loop
while($r=mysql_fetch_array($result))
{
//grab the result
$storytext=$r["storytext"];
//print it out
echo "<p>$storytext";
echo "<br><br><hr>";
}
//else nothing is found
//else
//{
// echo "Nothing found";
//}
?>



//

Bookmarks