Jump to content

PHP mySQL: Outputting images dynamically?


webmaster1

Recommended Posts

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. 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.