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  »  Why is impossibe to APPLY after ADD but possible aftr CHANGE

phpMyEdit General     Why is impossibe to APPLY after ADD but possible aftr CHANGE
Post new topic   Reply to topic    
 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2003-11-12 19:24
Back to top  Reply with quote     

something similar is discused here in another place.

try this in you after insert trigger:

$this->rec = mysql_insert_id();
or
$this->rec = newvals['id'];
$this->operation = 'Change';

which should direct you to change mode after hitting add button. beware 'Change' is language specific.

se also
http://opensource.platon.sk/forum/projects/viewtopic.php?t=158

 
hsicard     Joined: 22 Oct 2003   Posts: 17  
Post Posted: 2004-10-23 11:38
Back to top  Reply with quote     

It would be really good to have this as a built-in funcionality instead of using weird triggers for all forms...

 
nepto     Joined: 06 Jan 2003   Posts: 320   Location: Phoenix, Arizona (USA)
Post Posted: 2005-02-24 17:42
Back to top  Reply with quote     

Well, actually this could be problem with different DB servers than MySQL (since mysql_insert_id() is MySQL specific).

If we plan to add support for other DB server into the phpMyEdit, we should be carefull with features like this.

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
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