On 10/14/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: > @ All... > > This is just nuts... > > I can run this sql in an editor and get the correct results: > > select distinct event_day from weekly_schedule order by event_day > > And the correct results are 1, 2, 4, 6. > > But if I run that same sql in a CF8 cfquery, scoping or not scoping > every variable, all I get is 1, 1, 1, 1. This was working perfectly in CF > 4.5. > > <cfquery name="get_days" datasource="#dsn#"> > select distinct event_day from weekly_schedule order by > event_day > </cfquery> > > I even put just the query and output commands on a separate page > and still get 1, 1, 1, 1. > > <cfquery name="get_days" datasource="#dsn#"> > select distinct event_day from weekly_schedule order by > event_day > </cfquery> > > <cfloop query="get_days"> > <cfoutput>#get_days.event_day#</cfoutput><br /> > </cfloop> > > I just don't get it... > > Any more ideas, anyone? :o/ >
you tried dumping the query? <cfdump> will be your very best friend. <cfdump var="#get_days#"> see if it's the query that's not returning the data you want, or if it's the loop that's outputting it incorrectly. -- Charlie Griefer ================================================ "...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince with a swift warning. Be cunning and full of tricks and your people shall never be destroyed." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291055 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

