Hi,
Use the following
#queryname.recordcount#
so in your case
#localads.recordcount#
Have a look at these too
queryname.CurrentRow
queryname.RecordCount
queryname.ColumnList
~Justin MacCarthy
----- Original Message -----
From: WL <[EMAIL PROTECTED]>
To: Cold Fusion Talk <[EMAIL PROTECTED]>
Sent: Sunday, May 07, 2000 8:47 PM
Subject: Basic: number of rows returned?
> Hi,
>
> Sorry for the basic question - but we all have to start somewhere right?
>
> OK all I need to do is find out how many rows are returned on the
following
> Query:
>
> <cfquery name = "sub_cats" datasource = "localads">
> Select sub_id, sub_name, sub_descript
> FROM sub_categories
> WHERE cat_id = '#cats.ID#'
>
> </cfquery>
>
> Thanks...:)
>
> Will
> --
> Lukrative Media Ltd - Berkshire, UK
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.