Richard Dillman wrote:
> The *BIG* Question is do I need to use a cfqueryparam in the second query,
> and IF I do, how would I put the info into it IE what  cfsqltype?
> 

You can use <cfqueryparam value="#kidlist#" cfsqltype="CF_SQL_INTEGER" 
list="Yes">

But you also might want to think about combining the queries...
<cfquery name="CheckFam" datasource="#DSN#" username="#dbusername#"
password="#dbpassword#">
SELECT     a.ID, a.Child, a.Family, b.REC_ID, b.CHILD_ID, b.FIRSTNAME
FROM       CFX_Family_Members a LEFT JOIN Children b ON a.Child = b.REC_ID
WHERE     (a.Family = <cfqueryparam value="#URL.ID#"
cfsqltype="CF_SQL_INTEGER">)
</cfquery>

Ben Forta has a great blog post today on letting the db do what it is 
good at...
http://www.forta.com/blog/index.cfm/2006/12/1/ColdFusion-Is-Not-A-DBMS



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262496
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to