Skip to content

Chart to your URL Shortener with Statistics.

Hello

I decided to implement a Chart vision of the access to a address of the last 30 days. THe system that I choosed is Open Flash Chart.

The new methods:
getAccess($id) – Return an Associative Array with the access by date and the total
formatData($data) – Receive the access of getAccess and transform it in a Numeric Array.
criarLabels() – Create the labels to the bottom part of the chart.

If you want to access it, you have to manually get the ID and use http://www.example.com/diretorio/chart.php?id=ID where ID is UID from the MySQL table.

Example:

URL Shortener with Statistics and Chart.

Creating your own Url shortener
Statistics on your URL Shortener

Best Regards,
Matheus

PS: Don’t forget the Rewrite Rules.

Published inMySQLphp

158 Comments

  1. You really make it seem so easy with your presentation but I find this topic to be actually something that I think I would never understand. It seems too complicated and extremely broad for me. I am looking forward for your next post, I will try to get the hang of it!

  2. Эта статья – настоящий кладезь информации! Я оцениваю ее полноту и разнообразие представленных фактов. Автор сделал тщательное исследование и предоставил нам ценный ресурс для изучения темы. Большое спасибо за такое ценное содержание!

  3. Статья содержит анализ плюсов и минусов разных решений, связанных с проблемой.

  4. If some one desires expert view about running a blog afterward i propose him/her to go to see this website, Keep up the pleasant work.

  5. May I just say what a comfort to find a person that truly knows what they’re discussing on the internet. You certainly know how to bring a problem to light and make it important. A lot more people have to check this out and understand this side of your story. I was surprised you are not more popular since you certainly possess the gift.

Leave a Reply

Your email address will not be published. Required fields are marked *