Jump to content

advance image from php recordset in javascript array


BoarderLine

Recommended Posts

Hi, I am using a javascript image gallery with which I am trying to pull the images from a recordset.  I am newb and can't understand how to display all the images from the recordset.  Using the following code works but only shows the first item in the recordset for each array item.  Is there a way I can modify the php in this script to advance x1 the recordset item??? Thanks.

 

<script>
imagearray: [
["<?php echo tNG_showDynamicImage("", "Images/ClubListing_Pics/", "{rsClubPics.ImageFile}");?>", "http://en.wikipedia.org/wiki/Swimming_pool", "_new"],
["<?php echo tNG_showDynamicImage("", "Images/ClubListing_Pics/", "{rsClubPics.ImageFile}");?>", "http://en.wikipedia.org/wiki/Swimming_pool", "_new"],
["<?php echo tNG_showDynamicImage("", "Images/ClubListing_Pics/", "{rsClubPics.ImageFile}");?>", "http://en.wikipedia.org/wiki/Swimming_pool", "_new"],
	["<?php echo tNG_showDynamicImage("", "Images/ClubListing_Pics/", "{rsClubPics.ImageFile}");?>", "http://en.wikipedia.org/wiki/Swimming_pool", "_new"],
["<?php echo tNG_showDynamicImage("", "Images/ClubListing_Pics/", "{rsClubPics.ImageFile}");?>", "http://en.wikipedia.org/wiki/Swimming_pool", "_new"],
["<?php echo tNG_showDynamicImage("", "Images/ClubListing_Pics/", "{rsClubPics.ImageFile}");?>", "http://en.wikipedia.org/wiki/Swimming_pool", "_new"],
],
</script>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.