View Full Version : dynamicaly display images on page
koolkrasher
September 10th, 2007, 11:09 AM
How can i dynamically display images from a folder on a page using ?
brndn
September 10th, 2007, 11:57 AM
ajax
Digitalosophy
September 10th, 2007, 12:39 PM
You can use any server side language. Ajax may be a little over complicated unless you have a reason to use it.
koolkrasher
September 10th, 2007, 02:48 PM
was looking for a php example. i tried something with ajax and it was way more than what i needed. any help apreciated.
shdt
September 10th, 2007, 03:17 PM
<td colspan="2" style="padding-left:10px"><img src="<?php echo $row['place_image']; ?>" alt="<?php echo $row['cat']; ?>" border="1"></td>
Here $row['place_image'] is the image name along with path, you can also use images/$row['place_image'], where 'place_image' will be the name of the image.
joran420
September 10th, 2007, 03:47 PM
you would need to store the images in a database or a xml file or something then just pull them into PHP and cycle through them.
AJAX i think gets overly complicated because of how its explained i think...AJAX isnt really its own language but a combination of frontEnd(java) and backend(ASP,or PHP) for a fluid site design
if you are familliar with php and javascript you are familliar with ajax.
hl
September 10th, 2007, 03:50 PM
www.php.net/header
www.php.net/file_get_contents
www.php.net/print
:)
koolkrasher
September 10th, 2007, 10:01 PM
thanks for the help ill give it a shoot.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.