Okay, you took the first step. Now please review this:
foreach (glob("images/*.jpg") as $filename)
echo("<img src=\"$filename\"><br>$filename <br><br>");
1. This example does not put in all the embedded formatting shown in your
example. What you did was simply bad form -- you should learn css as well.
Also, you don't need to place the code within a bunch of html -- it will work
2. I always want my students to place images in an image directory -- the above
conforms to that.
3. The example also shows how to separate the jpg's from other files in the
So, where do you want to go now?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php