You're not looping over the query when you output it in CF, so CF only
returns the first value.

> -----Original Message-----
> From: Jillian Carroll [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 2:17 PM
> To: CF-Talk
> Subject: Query Not Cooperating
>
>
> I've broken down my queries into the simplest of forms... and it's not
> working.  It should return 3 values and only returns 1.  I'm posting
> this because I'm hoping that I am missing something completely obvious
> that I'll smack my head about.
>
> My database is in Postgres.
>
> My query at the command line works:
>
> select id from attendee where assigneddate=22;
>
> This returns: 50 52 51
>
> *** *** ***
>
> My query in CF does not work:
>
> <cfquery name="attendeeupdate" datasource="#DSN#">
> SELECT id from attendee WHERE assigneddate = 22
> </cfquery>
>
> <cfoutput>
> #id# <br />
> </cfoutput>
>
> This returns: 50
>
> --
> Jillian
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to