|  | Posted by Ivαn Sαnchez Ortega on 11/18/07 23:34 
phill.luckhurst@googlemail.com wrote:
 > so what is needed is something along the lines of
 >
 > myShow = new Slideshow('my_slideshow', {hu: 'images/', images:
 > ['$url[1]','$url[2]','$url[3]']});
 
 So you need to quote the array values, then concatenate them all with
 commas...
 
 
 <?php
 
 foreach($url as $u)
 {
 $quotedurl[] = "'" . $u . "'";
 }
 
 $concatenatedstuff = implode(',',$quotedurl);
 
 echo "myShow = new Slideshow('my_slideshow', {hu: 'images/', images:
 [$concatenatedstuff]});";
 
 ?>
 
 
 
 > I really must learn how to code.
 
 Yep...
 
 --
 ----------------------------------
 IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
 
 Proudly running Debian Linux with 2.6.22-3-amd64 kernel, KDE 3.5.8, and PHP
 5.2.4-2 generating this signature.
 Uptime: 00:32:43 up  7:33,  2 users,  load average: 0.31, 0.47, 0.45
  Navigation: [Reply to this message] |