Código PHP:
y esteVer original
if ( ($socio!=NULL and $socio==$row['CODIGO'])and ($apyno!=NULL and $apyno!=$row['APYNO']) and ($direc!=NULL and $direc==$row['DIREC']) and ($postal!=NULL and $postal==$row['CODPOS']) and ($local!=NULL and $local==$row['LOCAL']) and ($telef!=NULL and $telef==$row['TELEF']) and ($estado!=NULL or $estado==$row['ESTADO']) or ($fenac!=NULL and $fenac==$row['FENAC']) and ($fein!=NULL and $fein==$row['FEING']) or ($feegr!=NULL and $feegr==$row['FEEGR']) or ($catego!=NULL and $catego==$row['CATEGO']) and ($nrdoc!=NULL and $nrdoc==$row['NRDOC']) and ($legajo!=NULL and $legajo==$row['LEGAJO']) or ($email!=NULL and $email==$row['EMIAL']) or ($inter!=NULL and $inter==$row['TELELAB']) and ($cremax!=NULL and $cremax==$row['CREMAX']) and ($id!=NULL and $id==$row['ID_SOPRO'])) { echo "se actualizo el Apellido y Nombre<br>"; }
Código PHP:
Ver original
if ( ($socio!=NULL and $socio==$row['CODIGO'])and ($apyno!=NULL and $apyno==$row['APYNO']) and ($direc!=NULL and $direc!=$row['DIREC']) and ($postal!=NULL and $postal==$row['CODPOS']) and ($local!=NULL and $local==$row['LOCAL']) and ($telef!=NULL and $telef==$row['TELEF']) and ($estado!=NULL or $estado==$row['ESTADO']) or ($fenac!=NULL and $fenac==$row['FENAC']) and ($fein!=NULL and $fein==$row['FEING']) or ($feegr!=NULL and $feegr==$row['FEEGR']) or ($catego!=NULL and $catego==$row['CATEGO']) and ($nrdoc!=NULL and $nrdoc==$row['NRDOC']) and ($legajo!=NULL and $legajo==$row['LEGAJO']) or ($email!=NULL and $email==$row['EMIAL']) or ($inter!=NULL and $inter==$row['TELELAB']) and ($cremax!=NULL and $cremax==$row['CREMAX']) and ($id!=NULL and $id==$row['ID_SOPRO'])) { echo "Cambia direccion<br>"; }
Si le prestan atencion las diferencias son:
($apyno!=NULL and $apyno!=$row['APYNO']) and ($direc!=NULL and $direc==$row['DIREC'])
($apyno!=NULL and $apyno==$row['APYNO']) and ($direc!=NULL and $direc!=$row['DIREC'])
Para las dos imprimen.
resultado:
echo "se actualizo el Apellido y Nombre<br>";
echo "Cambia direccion<br>";
Alguna idea?