webmaster1 Posted November 24, 2008 Share Posted November 24, 2008 Hi All, I want to output all existing records (text and three images) from a mySQL database. The image files are stored as paths btw. I want to output the three images dynamically rather than one beneath the other. By dynamic I mean: [*]An image viewer of sorts comprised of thumbnails that when clicked on display a larger size of the image. [*]Occurs within the one same page and each record has its own image viewer. A perfect example of what I'm looking for can be found here: http://www.carzone.ie/search/Alfa-Romeo/145/200840190195708/advert ??? My question is how should I approach this (PHP or Javascript or Ajax) ? ??? Does anyone know of any decent free open source tools or tutorials for this? I can't seem to pull up a whole lot of information on this through searching. Quote Link to comment https://forums.phpfreaks.com/topic/133973-php-mysql-outputting-images-dynamically/ Share on other sites More sharing options...
corbin Posted November 24, 2008 Share Posted November 24, 2008 PHP + JS. I don't know of a tutorial. Quote Link to comment https://forums.phpfreaks.com/topic/133973-php-mysql-outputting-images-dynamically/#findComment-697401 Share on other sites More sharing options...
webmaster1 Posted November 24, 2008 Author Share Posted November 24, 2008 PHP + JS. I don't know of a tutorial. I've found a JS solution: http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm Given that I'll only have about twenty records (20 images viewers x 3 images = 60 images total) is it realistic to try and attempt squeezing all of this into the one page? Quote Link to comment https://forums.phpfreaks.com/topic/133973-php-mysql-outputting-images-dynamically/#findComment-697403 Share on other sites More sharing options...
monkeypaw201 Posted November 24, 2008 Share Posted November 24, 2008 I'd say try it and see how it looks Quote Link to comment https://forums.phpfreaks.com/topic/133973-php-mysql-outputting-images-dynamically/#findComment-697426 Share on other sites More sharing options...
shutat Posted November 24, 2008 Share Posted November 24, 2008 Check to see if your host supports the gd library; if it does, you can generate images on the fly including resizing. The downside is it's somewhat static, so you could use an iframe, and or javascript along with $_GET to "dynamcially" change each image, or try ajax. Here's a link to gd and here's one to some thumbnails page using php and js. I don't know if either will meet your need, but thought I'd throw it out there. HTH. Quote Link to comment https://forums.phpfreaks.com/topic/133973-php-mysql-outputting-images-dynamically/#findComment-697447 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.