Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/01/2012, 05:11
sotos2
 
Fecha de Ingreso: octubre-2011
Mensajes: 18
Antigüedad: 12 años, 7 meses
Puntos: 0
consulta fecha

Código PHP:
Ver original
  1. "SELECT usuari_compres, article, quantitat, preu, pagament, UNIX_TIMESTAMP(datainicial) AS datainicial2, DATEDIFF( 'dd', CURDATE( ), UNIX_TIMESTAMP(datainicial)) AS diferencia FROM compres WHERE pagament = 'si' And diferencia BETWEEN 1 and 30";


Alguien me puede decir si hay algun error en esta consulta?
Gracias