OccasionalCoder
Technical User
I've got a table with first_name, Last_name, Start_year, End_year, TwoStart_year, TwoEnd_year.
I am passing through the url a 4 digit number representing the year.
The url.year can be either a start_year, or a twostart_year.
I tried:
<cfquery name="get_pastfellows" datasource="#db#" username="#un#" password="#pw#">
select * from copyfellows
where end_year is not null and start_year = '#url.year#'
order by last_name
</cfquery>
<cfquery name="get_two" dbtype="query">
select * from get_pastfellows
where twoend_year is not null and twostart_year = '#url.year#'
</cfquery>
I need to convert the url.year (4 digit string) into a date and have it output the name information when either case (start_year or twostart_year) is defined in the url. I tried using createdate and dateformat and nothing seems to work.
I'm relatively inexperienced at this and have tried everything I can think of but it doesn't work.
I greatly appreciate any help.
I am passing through the url a 4 digit number representing the year.
The url.year can be either a start_year, or a twostart_year.
I tried:
<cfquery name="get_pastfellows" datasource="#db#" username="#un#" password="#pw#">
select * from copyfellows
where end_year is not null and start_year = '#url.year#'
order by last_name
</cfquery>
<cfquery name="get_two" dbtype="query">
select * from get_pastfellows
where twoend_year is not null and twostart_year = '#url.year#'
</cfquery>
I need to convert the url.year (4 digit string) into a date and have it output the name information when either case (start_year or twostart_year) is defined in the url. I tried using createdate and dateformat and nothing seems to work.
I'm relatively inexperienced at this and have tried everything I can think of but it doesn't work.
I greatly appreciate any help.