It does and it doesn't. . .cannot figure out why. . . it seems to work. . but 
only returns the column name:

<cfquery name="getindiv" datasource="sotl">
select #i# as grade
from grades06
where readerid = #session.readerid#
</cfquery>

        <td><cfoutput>#getindiv.grade#</cfoutput> (the column name -- ex:  404) 
is returned. . .not the value of '2' it contains.

Debugging:

getindiv (Datasource=sotl, Time=0ms, Records=1) in D:\Webpub\Wwwroot\ @ 
12:18:47.047

select 404 as grade
from grades06
where readerid = 2

Any more ideas??  Hugely grateful, but still apparently terminally slow. . .




>Molly,
>
>Hi, there.  I think that using a database alias will do the trick.  If
>you use this syntax:
>
><CFQUERY name="getindiv" datasource="sotl">
>   SELECT  #i# AS ProposalName
>   FROM    grades06
>   WHERE   readerid = #session.readerid#
></CFQUERY>
>
>...then you can refer to that column as getindiv.ProposalName.
>
>Also, I noticed along the way something I would clean up a bit. You can
>replace all of this code:
>
><cfset proposals = ''>
><cfoutput query="getproposals">
><cfset proposals = '#listappend(proposals,proposalid)#'>
></cfoutput> 
>
>...with this:
>
><CFSET proposals=#ValueList(getproposals.proposalid)#>
>
>Hope this helps,
>Matthieu

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225596
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to