Jump to content

[SOLVED] select statement on date field by specific year


jboy6t9

Recommended Posts

hi.. i am using dreamweaver 8.2, php and mySQL db. my questions is how can i filter a set of records on the date field by only giving the YEAR as the variable. what i want to achieve is a list of listings by year.

 

please could someone help.

 

i tried this but no luck

 

SELECT *

FROM tblProperties

WHERE dateAdded LIKE '%2006'

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.