Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Maggie Nelson's Blog:
NTILE() - easy way to generate tag clouds
Apr 29, 2008 @ 18:44:01

For the Oracle users out there looking for an easy way to pull those tags together and make a handy little cloud out of them, Maggie Nelson has posted about a simple Oracle function that can help - NTILE.

For example, check out the documentation for the NTILE Function. Yeah, sounds kind of boring. What good could it be in the wonderful world of web development? After all, who manages employee or sales tables anymore... Answer: generating tag clouds.

Her SQL statement categorizes the tags for you automatically, dropping them in to "buckets" of font sizes. This makes it simple to loop through them (like with a foreach) and output your tags with a little help from some CSS. You can even specify how many buckets you want it to fill (how many different tag values to get and compare).

tagged: ntile tag cloud tutorial oracle sql order bucket

Link:


Trending Topics: