Posted by Fred Atkinson on 08/27/07 01:36
Greetings,
I need some help on revising a simple PHP script. The script
I currently have is:
<?php
$image = getRandomImage(LL/');
echo "<img src='$image' height=90 width=120 alt='LL'>";
?>
The script looks in the subdirectory for a random image and
displays the one it chooses.
What I want to do modify it for is so that if it doesn't find
an image in the subdirectory, that a default image (from the current
directory rather than the designated subdirectory) ) can be displayed
instead.
Any suggestions?
Regards,
Fred
Navigation:
[Reply to this message]
|