here's the scenario: (all working sweetly so far - question at the end ) !
A user uploads five pictures and makes comments on each picture (via a form).
The pictures are uploaded to a dir. The upload script also to writes a txt file with the filepaths
and the comments (comma delimited) like this:
members/1/images/course_pics/7.jpg,111111,members/1/images/course_pics/9.jpg,22222, (etc., etc,. etc.,)
I can print this onto a page as an array using this:
Code: Select all
$uploaded_stuff = file_get_contents("members/$id/images/course_pics/" . $course_num . ".txt");
$file_array = explode(",",$uploaded_stuff);
foreach($file_array as $coursework) {
echo $coursework."<br />\n";
}
rather than just printing the contents of the txt file ?
Best wishes
Monty