Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
drmike
Worker
Worker



Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC

PostPosted: Mon Jan 10, 2005 10:13 am Reply with quote

Is there a method to count all of the words within a table?

thanks,
-drmike

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Jan 10, 2005 11:49 am Reply with quote

Not in MySQL. If you mean to count all words in all columns, then you would need to set up a loop that uses the php function to count words and cycle through every column of every row.
 
View user's profile Send private message
drmike







PostPosted: Mon Jan 10, 2005 5:05 pm Reply with quote

Well, just a thought. One of the sites I run is a Fiction site with a 80 megs story table. Love to see how many words are in it.

What is the php function to count words anyway? Maybe I'll write it tonight.

Thanks for your help,
-drmike
 
Raven







PostPosted: Mon Jan 10, 2005 5:34 pm Reply with quote

http://us2.php.net/manual/en/function.str-word-count.php
 
drmike







PostPosted: Mon Jan 10, 2005 5:40 pm Reply with quote

Thank you. Bookmarked.

I can never find anything when I go to PHP.Net....

Thanks,
-drmike
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©