Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/05/2007, 13:53
Avatar de el cirujano
el cirujano
 
Fecha de Ingreso: mayo-2003
Ubicación: Frente al PC
Mensajes: 609
Antigüedad: 21 años
Puntos: 3
Re: Mostrar solo un registro que contenga el mismo dato

opcion # 4 y le haces un bucle con while y te la muestra todas...

Código PHP:
$sql mysql_query("SELECT DISTINCT(campofecha) AS fecha FROM tabla");
while (
$row mysql_fetch_array($sql))
{
echo 
$row["fecha"]."<br>";

__________________
CSS2 + AJAX + PHP + MySQL, una mezcla sin competencia!!!!!!