Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/02/2011, 17:06
walterdevel
 
Fecha de Ingreso: diciembre-2010
Mensajes: 788
Antigüedad: 13 años, 4 meses
Puntos: 51
Respuesta: Comparar fecha

Podés hacer algo así:

$anio = date("y");

$sql = "select * from tabla where RIGHT ( campo, 2 ) = '$anio'";