Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > ColdFusion

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-09-2007, 02:18 PM   PM User | #1
crono.Serge
New Coder

 
Join Date: Mar 2006
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
crono.Serge is an unknown quantity at this point
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!
crono.Serge is offline   Reply With Quote
Old 05-09-2007, 06:10 PM   PM User | #2
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 05-10-2007, 02:29 PM   PM User | #3
crono.Serge
New Coder

 
Join Date: Mar 2006
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
crono.Serge is an unknown quantity at this point
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?
crono.Serge is offline   Reply With Quote
Old 05-11-2007, 12:00 AM   PM User | #4
rafiki
Senior Coder

 
rafiki's Avatar
 
Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 2,034
Thanks: 18
Thanked 42 Times in 42 Posts
rafiki will become famous soon enough
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";
}
?>
__________________
Get Firefox Now
rafiki is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:04 PM.


Advertisement
Log in to turn off these ads.