PDA

View Full Version : Many images, select one via admin/radio button for the "Image of the day"...HOW???


BrightNail
06-05-2003, 09:10 AM
hey all,

how would I do this, or is there script(s) that currently do this?

I have images.

I need an admin interface that lets me add images and then via the tool, these images are displayed with radio buttons. I select an "image" and that image with its accompanying title, link, and description is now used on a page as the "featured image"...?

how can I do this?

so, if one day, I want a diff. image as the featured image, I go to the admin tool, select a diff image radio button, and now "THAT" image, title, desc and link will show on a page (where I have the include file or call to the database to display the selected image)

ahhhhhhhhhhhh..how?

raf
06-05-2003, 01:41 PM
seems simple to me. Just store some sort of image ID in an application variabel. In the admin section, you store the value (-->ImageID or so, that you pull from the db) in the applicationvariabel.
In the userpages, you just read the applicationvariabel and select the record with that value as ImagID (in the db are then the title, description, alternative message (for when the image can not be diplays, image in a blob or reference to image (fileadress)