CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Best Practice

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 10/01/2008, 8:18 AM

I have to do numerous calculations on values in different tables. What I would like to know is the best way to include these calculations:

1) Should I simply create a 'calculations' page and write all the code in there? This would be in the Before Show event I presume?

2) Create a separate PHP page, write all the calculation code in there and somehow include this into the project.

Any tips would be appreciated.

Regards,

Trevor
View profile  Send private message
datadoit
Posted: 10/01/2008, 8:24 AM

How about putting the calculations into a view in your database? Then
in CCS your datasource is simply the view.
saseow

Posts: 744
Posted: 10/01/2008, 8:34 AM

Never thought of that and also never used a view in MySQL. I will look into that.

Thanks Datadoit.
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.

Web Database

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.