• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php tag cloud

#1
[eluser]new_igniter[/eluser]
Hello,
Can anyone share how they made a tag cloud?

I am just trying to find the most popular words in a series of rows. Basically, I have 1000 rows with text, and want to make the tag cloud that would show the most popular words in those rows.

Thanks!

#2
[eluser]xwero[/eluser]
This function can power your tag cloud.

#3
[eluser]new_igniter[/eluser]
Thanks! I feel dumb asking the second part, but I am just curious as to the appropriate query.

How would I take a specific column from say 1000 rows and turn them into a long string?

#4
[eluser]xwero[/eluser]
loop the result, add the value of the column to an array inside the loop and implode the array after the loop.

#5
[eluser]new_igniter[/eluser]
would I just use implode (separator,array) ?

#6
[eluser]xwero[/eluser]
if the array has one dimension you can but the result method returns an array with objects an the result_array method returns a 2 dimensional array.
Code:
array(array('column'=>1),array('column'=>1));
The loop is to flatten the array.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.