Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can somebody double check me?

    Hi guys,

    I wanted to know if this code was right:
    Code:
    		<cfif #qWSum.recordCount# EQ 0>
    					<td class="qData2" colspan="2"><strong>Table is Empty. No records found!</strong></td>
    		<cfelse>				
    			<cfif #wSum# LT #wConst#>										
    					<td class="qData2"><strong>#wSum#</strong></td><td class="qData2">#WYSEDiff#</td>
    			<cfelse>
    					<td class="qData"><strong>#wSum#</strong></td><td class="qData">#WYSEDiff#</td>
    			</cfif>
    		</cfif>
    I have a query by that name qWSum and wanted to know if that qWSum.recordCount was correct or not. Thanks a bunch!

    OH! And congrats on the "new" forum (I've been away for a while) I really like it!

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Assuming it is not case-sensitive, yes, that's right.

    http://livedocs.adobe.com/coldfusion...s/tags-b19.htm

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    New Coder
    Join Date
    Mar 2006
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!

    Also, I was wondering if I could get some help. I'm not completely new to ColdFusion or PHP, but, I was wondering if I could get some pointers as to how to create a self-validating page (passing data to the same page), I'm still not sure on how I would go about that. Could I get some pointers and examples?

  • #4
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    form action to self, then check to see if it is set or not and either echo the form or what not if it isnt and if it is execute code
    PHP Code:
    <?php
    if (isset($_GET['name'])) {
    do 
    this;
    }else{
    echo 
    "form";
    }
    ?>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •