January 5th, 2014, 07:11 AM
please i have a question on mysqli.. using php...
retrieving uploaded images from my db...
QUESTION: how do i input a thumbnails drop down list of different sizes like. 32*24, 40*60, 64*80 etc.. so when i click on any of the thumbnail size, the image should be displayed in table manner, when sizing changes images per row should also change
January 5th, 2014, 08:04 AM
Perhaps if you read the sticky on how to post properly you would have better luck with your question.
EVERYONE needs help when they post here. Try using a subject line that says something meaningful and maybe you'll get more interest.
Personally - your question implies that you need help with simple html. Read up on the syntax of the select and option tags and then on tables and then use your noggin to put together a solution and THEN worry about the php to generate all that html.
January 5th, 2014, 08:57 AM
Do you already have the thumbnails for those sizes? Or do you still need to create them?
January 5th, 2014, 11:44 AM
no, i still need to create them
Originally Posted by requinix
January 6th, 2014, 06:19 AM
To the OP, your question is not clear ...
If you need to create the thumbnails, you should do that when the images are uploaded (you'll have to write a separate one-off script to thumbnail the already uploaded images).
Simply save these thumbnail file names into a database and when the selection is made by the user, change your SQL to pull back the correct thumbnail size and display to the user.
Again, it's the display to user bit that'd be the hassle, I'm sure that DIVs are a better solution to a TABLE because they're flexible and can be "wrapped" onto the next "line" if they exceed their container width.
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984