I hv problem with database update at the same time with different field of different file uploading, So i use multiple file uploading but i m unable to update the field of database……….. Here is my code
<?php
if($_POST)
{
if($
{
//print “<PRE>”;
//print_r ($_FILES[info]);
foreach($
{
$name = $_FILES[info][name][$key];
$tmp_name = $
$target_path = “FILES/”.rand(1, 10000).”_”.$name;
$copy = copy($tmp_name, $target_path);
mysql_query(“UPDATE `client`pan`id
}
}
}
?>
<FORM METHOD=POST ACTION=”” enctype=”multipart/form-data”>
<TABLE width=”100%” align=”center”>
<TR>
<TD>Pan Details</TD>
<TD></TD>
<TD><INPUT TYPE=”file” NAME=”info[]”></TD>
</TR>
<TR>
<TD>Tan Details</TD>
<TD></TD>
<TD><INPUT TYPE=”file” NAME=”info[]”></TD>
</TR>
<TR>
<TD>Vat Details</TD>
<TD></TD>
<TD><INPUT TYPE=”file” NAME=”info[]”></TD>
</TR>
<TR>
<TD>Service Tax</TD>
<TD></TD>
<TD><INPUT TYPE=”file” NAME=”info[]”></TD>
</TR>
<TR>
<TD></TD>
<TD></TD>
<TD><INPUT TYPE=”submit” value=”submit”></TD>
</TR>
</TABLE>
</FORM>