Hey guys.
Sorry for my bad English, but I miss help with php script which has worked until version 8.23 but does not work any more script inserted below.
// User settings - change as appropriate
$title = "Foto";
$no = 25; // No of pictures
// Query data
$query = "SELECT tp.photo_id AS photo_id, tp.photo_title AS photo_title, tp.album_id AS album_id, tp.photo_thumb1 AS photo_thumb1 FROM ".DB_PHOTOS." AS tp LEFT JOIN ".DB_PHOTO_ALBUMS." AS ta ON tp.album_id = ta.album_id ORDER BY photo_datestamp DESC LIMIT ".$no;
$result = dbquery($query);
// Output
openside($title);
echo("<MARQUEE BEHAVIOR='SCROLL' ALIGN='CENTER' WIDTH='100%' VALIGN='BOTTOM' DIRECTION='LEFT' SCROLLAMOUNT='2' SCROLLDELAY='1' ONMOUSEOVER='this.stop()' ONMOUSEOUT='this.start()'>
<table align='center'>\n<tr>\n"
;
while($data = dbarray($result))
{
$file = PHOTOS.(!@ini_get("safe_mode"
? "album_".$data['album_id']."/" : ""
.$data['photo_thumb1'];
if (!file_exists($file)) $file =IMAGES."imagenotfound.jpg";
echo("<td><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'><img src='".$file."' alt='".$data['photo_title']."' border='0' /> </a></td>"
;
}
echo("</tr>\n</table>\n</MARQUEE>"
;
closeside();
Thank you in advance for your help
HenningS