Originally posted by edwardsbc
Actually, you don't even need to know how many elements are in the array to walk it. Use [man]foreach()[/man] or a while/list structure:
foreach($filelist as $key=>$value) {
#do somethink with the keys and values here...
}
I am using a while loop to traverse, but since I will not know the content the easiest way is to just stop at the length. I did read about seperateing the with a key and vaule, but in this case there is not key really, just the value stored...
My goal here is to build a products page on the fly so for each .jpg file in the folder is one more product to be displayed in that catagorey. Now I am stumped on adding the discription without using sql. Since I Was hopeing to have a universial code to do ready each directory and build the page, but since each product has a unique discription I think I am going to use a database to store the image url, the discription, and the other information, like price and quanity. that way it will all link together.
Thanks...