Dynamic conditional cfloop

Maybe I'm just having a bit of Monday morning brainfreeze here but I have the following code...

<cfquery name="getLogins" datasource="myDB">
    SELECT * FROM Logins
</cfquery>

<cfloop query="getLogins">

    <cfset SESSION["#Trim(getLogins.accountName)#LoggedIn"] = 0 />

    <cfloop condition="WHILE SESSION['#Trim(getLogins.accountName)#LoggedIn'] EQUALS 0">
        <cfset getLogins.logInAccount = Application.cfcs.Login.logInAccount(getLogins.accountName,getLogins.email,getLogins.password) />
    </cfloop>

</cfloop>

I'm getting an error with my condition to do with the Session variable that I'm referencing but I cannot see what I am doing wrong?

Could someone please point me in the right direction.

Many thanks

Answers


Dunno why I had a WHILE in my condition - doh! Problem solved


Need Your Help

Google Chrome Extension + Login with Facebook + Parse

facebook parsing facebook-graph-api google-chrome-extension

I'm trying to build a google chrome extension, a use case requires that users can login with Facebook and share via a post to their Facebook wall.

Populating CheckBox in ASP.NET MVC from SQL Server

c# asp.net-mvc-3 sql-server-2008 checkbox

I am working on a ASP.NET MVC3 code to bind the CheckBoxes using the data from the column of my SQL Database present in App_Data directory.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.