Jump to content

Collect and Animate(loop) image


AndrewFerrara

Recommended Posts

I want to create an animation using an image that refreshes every hour hosted at this url:

http://www.bungie.net/stats/reach/nightmap.ashx

 

What is the best way to store the images and then animate(loop) the 24 most recent images?

 

Should I use a mysql database to store it or something else?

 

What are your thoughts?

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/226754-collect-and-animateloop-image/
Share on other sites

well what i can think of is a database with a table named images where you store the file name of the uploaded images.

every-time you upload an image a new row is made in the table.

Than you make a little php script hat does a simple select query

$query = "SELECT * FROM images LIMIT 0,23 DESC";

 

Does this help a little?

 

edit: table could look like this

 

image_ID  +    image_name  +  timeperhaps

---------------------------------------------------------

0                |        lalala.jpg    |    xxxxxx

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.