![]() |
Sergey Kornilov admin 11/5/2007 |
Very easy - use BeforeEdit event and sample action "Insert a record into another table". |
M
|
mkyle1 author 11/6/2007 |
Hi, |
J
|
Jane 11/6/2007 |
Martin, |
M
|
mkyle1 author 11/6/2007 |
Hi, |
M
|
mkyle1 author 11/7/2007 |
Hi, |
![]() |
Sergey Kornilov admin 11/7/2007 |
Any error messages? |
M
|
mkyle1 author 11/13/2007 |
Hi, |
J
|
Jane 11/15/2007 |
Martin, //** Save old data record in another table **** global $conn,$strTableName; if ($values["current_emp"]!=$oldvalues["current_emp"]) { $strSQLSave = "INSERT INTO emp_history (fName, sName, current_emp, urn) SELECT sName, fName, current_emp, urn FROM ".$strTableName." where ".$where; db_exec($strSQLSave,$conn); } return true; |
M
|
mkyle1 author 11/19/2007 |
Martin, try to use this code:
|
J
|
Jane 11/20/2007 |
Martin, //** Save old data record in another table **** global $conn,$strTableName; echo "old value: ".$oldvalues["current_emp"]; echo " "; echo "new value: ".$values["current_emp"]; |
M
|
mkyle1 author 11/20/2007 |
Martin, try to print and compare old and new values on the page:
|
J
|
Jane 11/21/2007 |
Martin, |
M
|
mkyle1 author 11/25/2007 |
Martin, it's difficult to tell you what's happening without seeing actual files. Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email] along with instructions on reproducing this error. I'll find what's wrong with your project inspecting it at Demo account site.
|