hi, this update works fine when I just upload one file. its a database for tracking which files belong to who, etc.
$query = "INSERT INTO reclamation ( clientid, reportname, filename, path )
VALUES( '$id', '$reportname', '$filename', '$path' )";
but when I do this to upload multiple files (1, 2, 3, or 4 files)
$file_dir = "/home/httpd/vhosts/babysteps.tv/httpdocs/counterpoint/uploads";
$file_url = "http://babysteps.tv/counterpoint/uploads";
foreach( $_FILES as $file_name => $file_array ) {
move_uploaded_file( $file_array['tmp_name'], $file_dir.'/'.$file_array['name'] )
or die ("Couldn't Copy");
}
the UPDATE statement just picks one. how can i gather up all that data?
cheers!