...

View Full Version : Can somebody double check me?



crono.Serge
05-09-2007, 02:18 PM
Hi guys,

I wanted to know if this code was right:

<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!

nikkiH
05-09-2007, 06:10 PM
Assuming it is not case-sensitive, yes, that's right.

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

crono.Serge
05-10-2007, 02:29 PM
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?

rafiki
05-11-2007, 12:00 AM
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
if (isset($_GET['name'])) {
do this;
}else{
echo "form";
}
?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum