Thanks Paul.

>Hi Allen,
>
><cfset playerShirt = 1>
><cfloop condition = "playerShirt lTE 10">
>   <cfquery datasource="#dsn#">
>     update team
>     set shirt = #playerShirt#
>     where ID = #playerShirt#
>   </cfquery>
>   <cfset playerShirt = playerShirt + 1/>
></cfloop>
>
>This is presuming of course the players primary key is 1-10  so if  
>your primary key is a name for example you will have to query the  
>primary keys and loop that query using the primaryKey in the where  
>condition.
>
>Paul
>
>
>
>
>> </cfloop>
>
>On 29/03/2008, at 2:20 AM, alan o'reilly wrote: 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3517
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to