Count words in PHP or mysql?
I'm writing a plugin that needs to count the number of words in the first post of a thread. What would be better in this case? Selecting the pagetext and then counting in php or just doing everything with one mysql select statement?
OR should I just build something to count the number of words in each thread, store the value in the post table, and just select that when needed?
|