<? year = date("y"); $consulta = MySql_Query("Select * from tabla where year = '$year'"); $rows = MySql_Fetch_Array($consulta); ?>