homepage Welcome to WebmasterWorld Guest from 54.211.47.170
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
slideshow with php and mysql
helenp




msg:4464603
 10:04 pm on Jun 12, 2012 (gmt 0)

Hi,
I dont have any content manager, I do everything myself,
however I would like to add a slideshow to the dynamic created pages, and just dont know how.
Some pages may have 5 photos and some may have 10 photos.
I could do it manually, just insert the full code in mysql, but I guess there is a better way, to insert the pattern to the image or inclusive the image itself into the database and then just get all the images that belong to that id.

The slideshow where I code the images is like this, with one small and one big image.
Any ideas?
<div id="dg-image-gallery" class="dg-image-gallery">
<div class="dg-image-gallery-image">
<img class="dg-image-gallery-thumb" alt="Foto lägenhet som uthyres nära Puerto Banus och stranden - Marbella" src="../fotos_viviendas/Comunes/sdamadenochepool.jpg">
<span class="dg-image-gallery-caption">The pool</span>
<span class="dg-image-gallery-large-image-path">../fotos_viviendas/Comunes/damadenochepool.jpg</span>
</div>
Thanks,

 

coopster




msg:4466945
 11:28 pm on Jun 18, 2012 (gmt 0)

or inclusive the image itself into the database and then just get all the images that belong to that id.


This is my favored approach to the dilemma. It's easy to allow your user to connect all kinds of images then to a certain identifier. As far as slideshow code goes, you can pre-load the page with the images (or thumbnails) or you could use an asynchronous call (AJAX) to retrieve them on the fly.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved