CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Help to display sCountSQL for record count

Print topic Send  topic

Author Message
DeWebDude
Posted: 09/12/2003, 4:53 AM

Using CC, and PHP I am trying to display how many records match the result of a query. Not trying to do paging etc, but to display something like
Search of "whatever" returned 50 Matches, which is how many records will be displayed ( not looking for paging).

In the manual I found sCountSQL but no example on how to display it, and could not get the result to display.

Thanks!!
No Name
Posted: 09/12/2003, 7:31 AM

All is generic except one line and that one is easy to convert to any other script language.

In Form Properties Header&Footer:
Current search: <b><font color ="red">{RecsFound}</font></b> items.

in Open Events (for the total in a database):
'==================================
' Count of found records
'----------------------------------
fResult = dResult * iRecordsPerPage
SetVar "RecsFound", fResult ' VBScript

in Before Show Events (for a total on a search/filter):
'==================================
' Count of found records
'----------------------------------
fResult = dResult * iRecordsPerPage
SetVar "RecsFound", fResult ' VBScript

DeWebDude
Posted: 09/12/2003, 2:46 PM

I tried putting this in before show
$fldRecsFound = $fResult = dResult * iRecordsPerPage;
And {RecsFound} still displays nothing.

I also tried these crazy things... nothing gives me a value...
<? echo {RecsFound}; echo "Jack";echo RecsFound; echo $RecsFound; ?>
{RecsFound}
$RecsFound
$fldRecsFound

( PHP & CC )

Please help.... Thanks!
No Name
Posted: 09/13/2003, 8:37 PM

Look into the project file for the Forum example that comes with CC. It also shows the code for counting reply records in PHP.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.