Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/11/2006, 11:57
Avatar de chalchis
chalchis
 
Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 20 años, 9 meses
Puntos: 21
hola Erikfrancisco solo para ver si realmente funciona
me sale error me dice que consulte el manual de mysql

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT EVENT_FOTO FROM atributos_imagenes WHERE EVENT_FOTO LIKE 'c%'' at line 1

espero tus comentarios
saludos
y gracias por responder

Cita:
Iniciado por Erikfrancisco Ver Mensaje
Pues no estoy muy seguro, pero creo que DISTINCT devería estar en EVENT_FOTO de esta forma:
Código PHP:
$res mysql_query"SELECT ID_FOTO, DISTINCT EVENT_FOTO FROM atributos_imagenes WHERE EVENT_FOTO LIKE '".$letters."%'") or die( mysql_error() ); 
Espero te haya funcionado. Suerte
Ups demasiado tarde
__________________
gerardo