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

 Creating and reading records

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 02/11/2005, 8:10 AM

I need some help from some kind PHP guru.

I want to achieve the following and have no idea how to go about it using PHP and CCS.

When a user logs in, I need to check a MySQL table to see if that user has any records in the table using a field called user_id.If there are no records in the table for the particular user, I want to programmatically add 100 records for the user with several fields taken from two other tables and the records will, of course, include the session UserID.

I would also like to know how to loop through the 100 records at a later stage, summing a field that the user has filled in in the interim.

Any help or pointers will be hugely appreciated.

regards,

Trevor
View profile  Send private message
aakici


Posts: 49
Posted: 02/11/2005, 2:24 PM

your record form data conenction must include a where statement that logged user id must equal to use_id field.
_________________
Regards,
M.Alpaslan AKICI
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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