Figured it out, so I thought I'd come back in and mark this resolved and post the answer just in case anybody else has this issue. The problem is the return statement if the query is sucessful. I completely forgot that return terminates the function, so the second file is never getting a chance to get uploaded. Changed the code to read as such -
function addPhotos($infoArr, $fileArr){
$qry="SELECT dir FROM tblphotogs WHERE id = ".$infoArr['photog'].";";
$rs=mysql_query($qry);
if($line=mysql_fetch_assoc($rs)){
$phDir = $line['dir'];
}else{
return(false);
exit;
}
$imgDir = "../images/".$phDir;
for($i=0; $i<count($fileArr); $i++){
if(is_uploaded_file($fileArr['tmp_name'][$i])){
if(!is_dir($imgDir)){
if(!mkdir($imgDir, 0777)){
return(false);
exit;
}
}
$imgTyp = getimagesize($fileArr['tmp_name'][$i]);
$flName = basename($fileArr['name'][$i]);
if($imgTyp[2] != 2){
return(false);
exit;
}else{
print("$flName<br>");
if(!move_uploaded_file($fileArr['tmp_name'][$i], "$imgDir/$flName")){
print("couldn't move $flName<br>");
return(false);
exit;
}else{
$qry="INSERT INTO tblimgs (nm, photog) VALUES ('$flName', ".$infoArr['photog'].");";
$rs=mysql_query($qry);
if(!$rs){
return(false);
exit;
}
}
}
}
}
return(true);
}
and it's working like a champ. Now all I gotta do is go back and see how many functions are screwed due to my brainfart...
Thanks for the help and suggestions.