I have a db with the fields having all the HTML of the page
I wana search a word from the HTML field of db and I wana show the results so that only the peragraph having the Searched word will display.
I m using regular expression
My code is
eregi("<p>.$Search.</p>",$String,$NString);
print "<br>\$NString[0] :: $NString[0]<br>";
here $Search is the varible containing the word to be searched
$String is the whole row from the HTML field of db
$NString is the array which will store the resultnet array
but the $NString[0] doesn't print any value