este es el codigo:		
  Código PHP:
    $sql="INSERT INTO $tabla VALUES ('$campo[0]','$psswrd[1]','$campo[2]','$campo[3]','$campo[4]','$campo[5]','0','$rowly',NOW(),NOW()); ";
        if ($campo[5] == 2){
            $sql.=" INSERT INTO $tabla3 VALUES ('$campo[0]', '', '', '', '', '', '', '','00/00/000', '', '', '') ";
        } 
    
  y este el error: 
:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; INSERT INTO profesor VALUES ('hjhjjhjjj3', '', '', '', '', '', '', '','00/00/' at line 1