Hello,
I want to insert images to my webpage, the source folder carries images and the number of images is not fixed, I am using the following code:
$number = 14;
$current = 0;
while ($current < $number) {
++$current;
echo "<a href=insert.php><img border=0 src=http://localhost/insert_files/up$current.gif></a><br><br>";
//or exit("unable to open file up$current.gif");
}
Since the source folder has undefined number of images I want to insert them all without showing empty place holders of images, but the number of images are less than 50.
Can any one assist me in finding the solution? Thanks.