You are here: Re: [PHP] graph - dowloads/hr « PHP « IT news, forums, messages
Re: [PHP] graph - dowloads/hr

Posted by "Richard Lynch" on 08/11/05 00:05

On Tue, August 9, 2005 3:07 pm, Sebastian wrote:
> i'd like to create a graph with the amount of downloads per hour, i am a
> little confused how i should go about this.
>
> i know i can use rrdtool/mrtg, but im looking for more 'user friendly'
> graphs with custom colors,etc.
>
> each time someone downloads a file it is incremented in the db and the
> last time the file was downloaded. i am unsure about the data i would
> need to store to create and if what i am storing is enough to do this.
> any suggestions or tools that already exists to create this types of
> graph?

select count(*) as score from downloads where date_add(download_time,
interval 1 hour) >= now() group by filename order by score desc

Then you use jpgraph on that result set.

Or just roll your own with http://php.net/gd

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация