Hi I have a piece of code which looks up a year between to fields in the database which are year_start & year_end.
And here is my code.
SELECT * from $tableName where '$year' BETWEEN start_year AND end_year; LIMIT $start, $limit
Now this seems to work fine except if the year is equal to the end_year value for example if i am searching for 2002 and the end year value is 2002, then it returns no results.
Any suggestions would be appreciated.
Thanks