Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/03/2009, 14:18
beneyto
 
Fecha de Ingreso: octubre-2008
Ubicación: Valencia
Mensajes: 20
Antigüedad: 15 años, 7 meses
Puntos: 0
Poner tres WHERES en MySQL

Hola compañeros tengo el siquiente codigo php para mysql

Código PHP:
<?php
    
include("config.php");
        
$socket mysql_query("SELECT * from noticias  where tipo='Wii' AND salida='ESTRENO' order by id desc limit 1");
    
$didi mysql_fetch_array($socket);
    echo 
$didi[caratula];
        
?>
Pues bien lo que quiero es que busque en tres wheres como si quedara asi


Código PHP:
<?php
    
include("config.php");
        
$socket mysql_query("SELECT * from noticias  where tipo='Wii' AND salida='ESTRENO' AND salida='NUEVO' order by id desc limit 1");
    
$didi mysql_fetch_array($socket);
    echo 
$didi[caratula];
        
?>
pero me tira un error y no me sale naaa xD
¿Como puedo poner eso asi?

Saludos