if($_POST['help'])
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
if($document_help[$i] != '') {
$sql1="UPDATE company ,contact_com,student,user SET document_help='".$_POST["document_help$i"]."',con_result='".$_POST["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());
echo $sql1;
}
}