michal
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
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
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)
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
|
|
|