Log in

View Full Version : slideshow in php mysql image



albayco
04-25-2010, 04:38 PM
hi i download Ultimate Fade-in slideshow script

http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

http://www.hazirmutfaklar.net/slideshow/2.html

no problem

but i


imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
["http://i30.tinypic.com/531q3n.jpg"],
["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
],



<?php
$image1 = "http://i26.tinypic.com/11l7ls0.jpg";
$image2 = "http://i29.tinypic.com/xp3hns.jpg";
$image3 = "http://i30.tinypic.com/531q3n.jpg";
$image4 = "http://i31.tinypic.com/119w28m.jpg";
?>



imagearray: [
["<?php $image1 ?>", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["<?php $image2 ?>", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
["<?php $image3 ?>"],
["<?php $image4 ?>", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
],

http://www.hazirmutfaklar.net/slideshow/2.php
and
http://www.uyduharitasi.com/index.html


does not work slideshow.

Thank you help me please.

jscheuer1
04-25-2010, 04:52 PM
Instead of (and similar):


<?php $image1 ?>

do:


<?php echo $image1; ?>

albayco
04-25-2010, 05:25 PM
I like how you make a mistake

sorry

i change




imagearray: [
imagearray: [
["<?php echo "$image1"; ?>", "", "", "Nothing beats relaxing next to the pool when the weather is

hot."],
["<?php echo "$image2"; ?>", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to

explore these caves!"],
["<?php echo "$image3"; ?>"],
["<?php echo "$image4"; ?>", "", "", "What a beautiful scene with everything changing colors."]

//<--no trailing comma after very last image element!
],



http://www.hazirmutfaklar.net/slideshow/2.php


does not work slideshow.

Thanks

jscheuer1
04-25-2010, 07:14 PM
Do what I typed:



<?php echo $image1; ?>

Not what you have:


<?php echo "$image1"; ?>

Also, this will not work unless you still have (what I thought you said you had, but that cannot be seen even if it is there):



<?php
$image1 = "http://i26.tinypic.com/11l7ls0.jpg";
$image2 = "http://i29.tinypic.com/xp3hns.jpg";
$image3 = "http://i30.tinypic.com/531q3n.jpg";
$image4 = "http://i31.tinypic.com/119w28m.jpg";
?>

This must come before the scripts.

albayco
05-01-2010, 02:00 PM
Ok thank you.