I queried image names out of database, now I’m trying to load them into a variable. How do I load them as individual file names instead of concatenated together? Thanks.
Array ( [0] => red.jpggreen.jpgblue.jpg )
Warning: unlink(upload_test/Array) [function.unlink]: No such file or directory in /home /public_html/ test.php on line 78
Array ( [0] => red.jpg [1] => green.jpg [2] => blue.jpg )
Warning: unlink(upload_test/Array) [function.unlink]: No such file or directory in /home/public_html/test.php on line 80
You can’t unlink an array of filenames just by putting the array in the unlink() function
If you don’t need that array anywhere else, why don’t you just do: