Page 1 of 1

Need a simple stats grabber coded please

Posted: Sat Aug 20, 2011 7:25 am
by Dynamite
Hi there guys,
I need a script that will:

Go to: http://stats.villavu.com/api/user/$USERID (The person will go to: http://mywebsite.com/$USERID)
(Example: http://stats.villavu.com/api/user/2)

Then on the page will have a drop down box to choose a maximum of 8 of the variables (eg. Total Levels Gained)

3 Default Variables are:
Rank, User and Time.

Then all of this information must be displayed on a PHP image.
The background: http://i.imgur.com/tAnl8.png


Thank you.

Re: Need a simple stats grabber coded please

Posted: Sat Aug 20, 2011 12:37 pm
by Christopher
Use the cURL library to fetch the data from that site. Use the JSON library to convert the data into a PHP variable. Generate the <select> from the data. See the docs for details.