Jump to content

[SOLVED] Most Popular download


dennismonsewicz

Recommended Posts

If you serve the image dynamically (e.g. by fetching info about it from a database using a primary key), then just have a column called something like downloads and increment it at each download:

UPDATE images SET downloads=downloads+1 WHERE image_id=54;

 

For getting the most popular images based on download count just do something like this:

SELECT * FROM images LIMIT 10 ORDER BY downloads DESC;

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.