if($_POST['help'])
{
for($i=0;$i<count($document_help);$i++)
{
if($document_help[$i] != '') {
$sql1="UPDATE company ,contact_com,student,user SET document_help='".$document_help[$i]."',con_result='".$con_result[$i]."' where company.no_company=contact_com.no_company AND contact_com.studentId=student.studentId AND student.studentId=user.username";
$result=mysql_db_query($dbname,$sql1)or die(mysql_error());
}
}