michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
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
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)
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
|
|
|