View Full Version : Conveyor Belt Slideshow from database

02-22-2009, 12:59 PM
1) Script Title:
Conveyor Belt Slideshow, load pictures from database
2) Script URL (on DD):
3) Describe problem:
The problem is, after a tweak i do get the images from my database, and also an encounting leftrightslide[NUMBER].

but in the browser it is somehow litterly showing the text "leftrightslide[NUMBER]".. plus the correct image.

It seems that im missing a closing or starting tag of somekind.. but can't find it..

I changed this:

var finalslide=''
leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" border=1></a>'
leftrightslide[1]='<a href="http://"><img src="dynamicbook2.gif" border=1></a>'
leftrightslide[2]='<a href="http://"><img src="dynamicbook3.gif" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="dynamicbook4.gif" border=1></a>'
leftrightslide[4]='<a href="http://"><img src="dynamicbook5.gif" border=1></a>'

into this:

var finalslide=''



while ($row = mysql_fetch_assoc($result)){
extract($row); ?>

leftrightslide[<?php echo $i;?>]='
<a target="_parent" href="index.php?pagina=klanten&klant=<?php echo $klant;?>"><? echo '<img src="logoimage/' . $logoname . '" />'; ?>
<? $i=$i+1;
<script type="text/javascript">
//Specify gap between each image (use HTML):

Any help is appreciated..