This topic is locked
[SOLVED]

 Auto-increment value for another field.

10/27/2012 6:31:31 PM
PHPRunner General questions
R
rustler45 author

After adding a record into my database, I need you insert the value of the primary key, auto-increment field into another field of the same table. I know this looks redundant but I have a good reason. Can anyone help me get this done through phprunner?

C
cgphp 10/27/2012

You can access the value of the primary key in the "After record added" event. The $keys array keeps the key column values that point to the new record. Check this article: http://xlinesoft.com/phprunner/docs/after_record_added.htm