CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 shoppingcart and user data

Print topic Send  topic

Author Message
Rakonic

Posts: 9
Posted: 05/08/2010, 2:13 AM

I work with book store project and i must in page shoppingcart to set form for users data and when i click purchase button that form must insert data in table user and must display user_id in store_order table.
How can i do this please help.
View profile  Send private message
computerman


Posts: 27
Posted: 05/10/2010, 7:46 AM

you can use ccgetuserid() easily to get userid.
_________________
"whoever is a cruel, must be an old downtrod who has got authority,
whoever is a downtrod, must be an old cruel who has lost authority. "
An Oriental Saying
View profile  Send private message
jjrjr1


Posts: 942
Posted: 05/10/2010, 8:28 AM

Actually a little more info might help.

Put a hidden text field on your purchase page.
Attach the text field to the database field you wish to update
In the before show event for the hidden text field create a retrieve value for control
In the properties for the new hidden control
Set Conrol to the hidden control name.
Type = Expression
The name = CCGetUserID()

Now if you need to set conditions where it is not updated if the purchase fails.. You would have to do the for the entire record insert or update.

Hope that helps
:-)
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
Rakonic

Posts: 9
Posted: 05/11/2010, 6:17 AM

Thanks my friends
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.