I can't figure this out...
I am developing a search script. I want to be able to list how many 'items' were found within the search per item found.
For instance, if I search a database full of jokes for the word "chicken", how can I display how many times the word "chicken" was found in each joke that has "chicken" in it.
$sql = "SELECT * FROM db WHERE jokes LIKE '%chicken%'"
I can use mysql_fetch_array to figure out each joke and list them how I'd like, but how do I find out how many times "chicken" was found in each joke?
THANKS IN ADVANCE!
Josh