I use the printRandomImages() function but it wont put anything on my screen.
The printLatestImages() works perfectly.
Is this function not working or am i using it wrong?
I tried the following:
printRandomImages();
printRandomImages(4);
printRandomImages(4,,);
printRandomImages(4,null,all);
printRandomImages(4,null,"all");
You can see that is dousn't work at my web page:
http://www.marcelspijker.nl/zenphotoOn the right side it should come up ...
Please forgive the layout problems under IE, still have to fix them, but this random function is just eating my time...
Comments
`function printRandomImages($number, $class=null, $option='all') {
if (!is_null($class)) {
$class = 'class="' . $class . '";';
echo "
";- n";
n";
";}
for ($i=1; $i<=$number; $i++) {<br />
echo "
switch($option) {
case "all":
$randomImage = getRandomImages(); break;
case "album":
$randomImage = getRandomImagesAlbum(); break;
}
$randomImageURL = getURL($randomImage);
echo 'getTitle(), ENT_QUOTES) . '">' .
'getThumb() .
'" alt="'.htmlspecialchars($randomImage->getTitle(), ENT_QUOTES).'"';
echo "/>
}
echo "
}`
We will get a fix up tonight.
Only there are two \ missing before the n.
`
echo "n";
echo "n";
`
should be
`
echo "\n";
echo "\n";
`