CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 passing last_insert_id in CCS ? (not CC)

Print topic Send  topic

Author Message
terrence
Posted: 08/23/2002, 6:39 AM

Hi,

I know about the php function mysql_insert_id(), and would like to pass it's value to the return page on a submit action in CCS. I wrote the code in an 'after insert' event, but how do I pass it ?

I found several threads here already explaining how to do it, I presume in CC, they talk about sAction etc... but this doesn't seem to work in CCS...

Any ideas ?
Nicole
Posted: 08/24/2002, 2:37 AM

Hello,
Look at generated code and find $Redirect variable. It stores the page name and parameter string to pass. It is used to redirect user. So you should add custom parameter to it using code (form After Insert event):
global $Redirect;
$Redirect .= "¶m_name=". mysql_insert_id()

   


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.