PDA

View Full Version : Conveyor Belt Slideshow from database



myrok24
02-22-2009, 12:59 PM
1) Script Title:
Conveyor Belt Slideshow, load pictures from database
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm
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..
example:
http://blikvoer.com/temp/bok/carous.php

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=''


</SCRIPT>

<?
$i=0;

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 . '" />'; ?>
</a>'
<? $i=$i+1;
}
?>
<script type="text/javascript">
//Specify gap between each image (use HTML):



Any help is appreciated..