Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  get new generated id $opts['triggers']['insert']['after']

phpMyEdit General     get new generated id $opts['triggers']['insert']['after']
Post new topic   Reply to topic    
 
eyal_barouk     Joined: 14 Jun 2004   Posts: 1  
Post Posted: 2004-06-14 16:24
Back to top  Reply with quote     

Hi,
I have a trigger set to be activated after a new record is inserted.
I need to use the same newly generated ID (autoincremented) and put it in another table.
In the trigger file I have tried to use:
$id = $newvals["id"];

But $newvals["id"] alwaise comes empty.

What can I do?
Thanks.

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-06-18 11:59
Back to top  Reply with quote     

this should be solved in the main class since CVS version 1.143.
$this->rec variable is set correctly to autoincrement value.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy