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 -> General/Other

 Help understanding how to setup update to tables

Print topic Send  topic

Author Message
txgolfer

Posts: 1
Posted: 07/26/2004, 4:43 AM

Problem: I need to update to tables. I need to understand the code structure & components.

I have a "User Registration form" (table #1user creates login record) and then this information needs to create a record (after submitting), into a different table "Property Ad Page" (table #2). I have tried to understand & use the CCS Example of updating two tables, but no luck.

Here is my custom code:

//Custom Code @16-DBD5F1C1
// -------------------------
global $prop_login;
// Write your own code here.
function Tasks_ds_AfterExecuteUpdate() {

$db = new clsDBConnection1();
$SQL = "INSERT INTO property_list (owner_login_password,owner_first_name,owner_last_name) ".
"VALUES (". $db->ToSQL(CCGetFromGet("ad_user_login","user_first_name","user_last_name",0),ccsInteger) .",". $db->ToSQL(CCGetUserID(),ccsInteger) .")";

$db->query($SQL);
$db->close();

}

// -------------------------
//End Custom Code

I don't understand how to code this part:

"VALUES (". $db->ToSQL(CCGetFromGet("task_id",0),ccsInteger) .",". $db->ToSQL(CCGetUserID(),ccsInteger) .")";

What is the format/layout/structure?

Thank you all in advance!
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.