hey there :-)
I am facing a small problem, can you recommend me something? my problem is like this:
now when a user searches some keywords on my website i extract data of website which includes complete page details. at a time i am fetching 10 results!
so now assume
while($out=mysql_fetch_assoc($res))
{
echo $out['full_txt']; // this echos complete page i.e. each and everything on page!
// this $out['full_txt'] is a string!
}
Now what i want to do is Depending upon keywords searched, i want to extract lines from this full_txt . Eg. I searched "hello world"
then i want to display website description as the lines which consists of either hello or world or both . The description is required to be modified from $out['full_txt'] thing. How can I achieve it? help would be really appreciated. thank you so much!
Here the words are the keywords searched by user. Help is really very much appreciated.
Is there any way that substr or other function can help me out from this situation?