Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/12/2012, 18:00
hexen02
 
Fecha de Ingreso: noviembre-2012
Mensajes: 8
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: if wn mysql error

gracias por la pronta respuesta, pero me sigue tirando este error:

Error Code : 1064
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 'if fecha_inicio1>=CURDATE() AND fecha_inicio1<fecha_termino1 THEN
SE' at line 1
(15 ms taken)

no sé si estoy haciendo mal el if o así no se comparan los date en mysql