CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 mysql_num_rows in AfterExecuteSelect without a second query

Print topic Send  topic

Author Message
ccsfan

Posts: 10
Posted: 10/04/2009, 9:10 PM

I modified the SQL in BeforeExecuteSelect.

I want to do something like this in AfterExecuteSelect in order to get the correct number of rows:

$num_rows = mysql_num_rows($Result);

My question is, what do I use for $Result? Of course I could run the query again to get the number of rows but I don't think it's necessary. I need to know how to refer to the query that was just executed.

Thanks.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 10/05/2009, 2:24 PM

ccsfan,
Maybe this is what you are looking for: http://docs.codecharge.com/studio40/html/index.html?htt.../Order.html?toc
View profile  Send private message
ccsfan

Posts: 10
Posted: 10/05/2009, 2:42 PM

Mambo,

Thanks, but that's not it. I just need a way to refer to the query that was just executed.
View profile  Send private message
ccsfan

Posts: 10
Posted: 10/05/2009, 5:16 PM

In other words, if I modify the SQL in BeforeExecuteSelect, is there a way to get the number of rows without another call to the database?
View profile  Send private message
ccsfan

Posts: 10
Posted: 10/07/2009, 9:04 PM

Bump
View profile  Send private message

Add new topic Subscribe to topic   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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