I’m building an web app with PHP where users upload images and they’re displayed publicly on a main index.php file. My problem is premium members get features, one of which allows you to upload a larger picture and keep them at the top so they can be above all others for a longer period of time.
Any idea how to do this so that a MySQL field can easily control this.
Thanks
Create an
expiration_datecolumn and insert a further out date into this column for the pictures when a premium user uploads an image and thenORDER BY expiration_date DESCwill keep the soonest to expire on the bottom.