BoarderLine Posted February 9, 2009 Share Posted February 9, 2009 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> Link to comment https://forums.phpfreaks.com/topic/144433-advance-image-from-php-recordset-in-javascript-array/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.