Código PHP:
 Ver original
function calc_mes_ad($sal,$reg) {
$i=1;
while($regphp > $regphp_aux ) {
$regphp_aux=mktime(0, 0, 0, $arrsal[1]+$i, $arrsal[0]-1, $arrsal[2], 0); // <--- Aca es donde aparece el error
$i=$i+1;
}
$t=$i-1;
$inter2 = $regphp-$regphp_aux2;
if ($dias_aux2==0) {
return $t."|0";
}
else {
if ($dias_aux2>21) {
return $t."|0";
}
else {
$semanas=1;
$regphp_aux3=$regphp_aux2;
while ($regphp > $regphp_aux3) {
$semanas=$semanas+1;
}
return ($t-1)."|".($semanas-1);
}
}
}
 
 



