Reputation: 409
We need to display all the thumbnails in one folder (e.g. c:/photos/101/tn/ folder) and then select one image as cover photo. Once the editor clicks on the "Set Cover Image" button, grab the select photo ID. Once the id is grabbed, I will store the info in the database.
Upvotes: 0
Views: 229
Reputation: 18797
Well, You don't expect to see a working code in the answers here do you? I takes some time and effort to write such a code.
No offense but people are here to show you the way or help you overcome the problems that you face when you're writing the code. Not getting your work done.
Actually, I did such a thing on YAF project. (http://www.yetanotherforum.net)
So to see a working example, You can download the source and see the YAF Albums code. Although I generated the thumbnails programmatically there, but that could be changed easily if you want to.
Upvotes: 1