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 -> ASP

 Inset record into table and then pass the id to another page

Print topic Send  topic

Author Message
Ray Bell
Posted: 03/04/2005, 3:08 AM

I have 2 tables.

I want to add a record to first table

ID : Auto PK Incremental (this is added automatically by the database)
Name : text
Surname : text

After insert then I would like to get the ID that was generated and then pass it onto the second page.

How do I do this.

Thanks for your help.
Ray.
Nicole

Posts: 586
Posted: 03/04/2005, 4:51 AM

Ray,
You can check CCS Multi Step Registration sample from CCExamplePack solution. The After Insert event on first step page includes a code that retrieves a last insert ID value
http://examples.codecharge.com/ExamplePack/MultiStepReg...trationGrid.php

_________________
Regards,
Nicole
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.