Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Why is impossibe to APPLY after ADD but possible aftr CHANGE

phpMyEdit General     Why is impossibe to APPLY after ADD but possible aftr CHANGE
Odoslať novú tému   Odpovedať na tému    
 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2003-11-12 19:24
Návrat hore  Odpovedať s citátom     

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     Založený: 22.10.2003   Príspevky: 17  
Príspevok Zaslal: 2004-10-23 11:38
Návrat hore  Odpovedať s citátom     

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

 
nepto     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2005-02-24 17:42
Návrat hore  Odpovedať s citátom     

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 .
 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov