Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/12/2008, 17:52
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: problema con if

no uses OR ni AND:

|| (doble pipa o como se llame el caracter) se usa para OR
&& (doble ampersand) se usa para AND
Código PHP:
if ($afiliacion == 'no' || $mesualidad =='no' ) {
echo 
'NO SE PUEDE GENERAR NINGUNA TRANSACCION PORQUE EL VEHICULO NO SE ENCUENTRA AL DIA';
} else if (
$afiliacion =='si' && $mensualidad == 'si') {
echo 
'PRESIONE AQUI PARA CONTINUAR';

__________________
- León, Guanajuato
- GV-Foto