Heuuuuuuuuuuuuuuuuuuuh
j"ai fait le fichier suivant :
<?php
include("../../admin/config.inc.php");
// initialization
$result_array = array();
$counter = 0;
$zid = (int)($_GET['zid']);
$pid = (int)($_GET['pid']);
// Thumbnail Listing
if( $zid && empty( $pid ) )
{
$number_of_thumbs_in_row = 4;
$resultz = mysql_query( "SELECT photo_id,photo_caption,photo_filename FROM gallery_photos WHERE photo_category='".addslashes($zid)."'" );
$nr = mysql_num_rows( $resultz );
if( empty( $nr ) )
{
$result_finall = "\t<tr><td>No Category found</td></tr>\n";
}
else
{
while( $row = mysql_fetch_array( $resultz ) )
{
$result_array[] = " '".$row[2]."' ";
}
mysql_free_result( $resultz );
$result_finall = "<tr>\n";
foreach($result_array as $thumbnail_link)
{
if($counter == $number_of_thumbs_in_row)
{
$counter = 1;
$result_finall .= "\n</tr>\n<tr>\n";
}
else
$counter++;
$result_finall .= "".$thumbnail_link."";
}
}
}
echo <<<__HTML_END
window.addEvent('domready', function(){
var data = {
'".$result_finall."' };
var myShow = new Slideshow.KenBurns('show', data, { captions: false, controller: false, delay: 5000, duration: 8000, height: 530, width:530, hu: '' });
});
__HTML_END;
?>
Mais sa marche Tjs pas
une idée sur l étendue de ma bétise ?