Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/02/2008, 11:08
gesking
 
Fecha de Ingreso: diciembre-2006
Mensajes: 294
Antigüedad: 17 años, 4 meses
Puntos: 2
Re: Varias consultas en una misma pagina

Si queres mostrar todos juntos...

Código PHP:
$result=mysql_query("select * from noticias where NoticiaEstado=1 and NoticiaEstado=5",$link); 
Separados???

así creo que anda:

Código PHP:
$result1=mysql_query("select * from noticias where NoticiaEstado=1",$link);
while(
$mostrar1 mysql_fetch_array($result1)) {
echo 
$mostrar1[campo];
}

mysql_free_result($result1);

$result2=mysql_query("select * from noticias where NoticiaEstado=5",$link);
while(
$mostrar2 mysql_fetch_array($result2)) {
echo 
$mostrar2[campo];
}

mysql_free_result($result2); 
Espero que te sirva