Por cierto una pequeña duda... intenté que no solo devolviera un valor, sino varios y algo debo estar haciendo mal, supongo que es un error de sintaxis:
Código php:
Ver originalSELECT if( (
FROM nivel1
AND DNI = '28823418z'
) = 0, if( (
FROM nivel2
WHERE Email = '525225'
AND CIF = '252525'
) = 0, if( (
FROM nivel3
WHERE Email = '525252'
AND CIF = '25252'
) <> 0, (
SELECT Pass,Telefono
FROM nivel3
WHERE Email = '525252'
AND CIF = '25252'
), 'los datos introducidos no son correctos' ) , (
SELECT Pass,Telefono
FROM nivel2
WHERE Email = '525225'
AND CIF = '252525'
) ) , (
SELECT Pass,Telefono
FROM nivel1
AND DNI = '28823418z'
) ) AS password, telefono;