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
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