C
|
cgphp 6/21/2012 |
It doesn't look a phprunner related issue. Please, try to reformulate your question. |
C
|
cristi author 6/21/2012 |
O.K. |
C
|
cgphp 6/21/2012 |
Do you want to update another table? |
C
|
cristi author 6/21/2012 |
Do you want to update another table?
|
![]() |
Sergey Kornilov admin 6/21/2012 |
You need to implement code that will update data in TABLE3 every time something changes in table1 or in table2. The best approach is to create a separate PHP function for this purpose and add a call to this function to all AfterAdd/AfterAdit/AfterDelete event of tables Table1/Table2. |
C
|
cristi author 6/22/2012 |
You need to implement code that will update data in TABLE3 every time something changes in table1 or in table2. The best approach is to create a separate PHP function for this purpose and add a call to this function to all AfterAdd/AfterAdit/AfterDelete event of tables Table1/Table2. I would also suggest to put this PHP function to external PHP file for convenience purposes. Here are instructions on including external PHP files: http://xlinesoft.com/phprunner/docs/how_to_add_external_files.htm
global $conn;
|
C
|
cgphp 6/22/2012 |
In the "After record added" event, you have access to the array of key column values that point to the new record. If this is not your case, check this function: http://www.php.net/manual/en/mysqli.insert-id.php |
C
|
cristi author 6/22/2012 |
In the "After record added" event, you have access to the array of key column values that point to the new record. If this is not your case, check this function: http://www.php.net/manual/en/mysqli.insert-id.php
|
C
|
cristi author 6/23/2012 |
One more question regarding working with ID as primary key: $sql = "DELETE Total, `Working hours` FROM Total INNER JOIN `Empl`
|
C
|
cgphp 6/23/2012 |
In the "Before record deleted" event, you can access the array with the field values from the record to be deleted. Check the user guide: http://xlinesoft.com/phprunner/docs/before_record_deleted.htm global $conn; |
C
|
cristi author 6/23/2012 |
In the "Before record deleted" event, you can access the array with the field values from the record to be deleted. Check the user guide: http://xlinesoft.com/phprunner/docs/before_record_deleted.htm global $conn;
global $conn;
|
C
|
cgphp 6/23/2012 |
If database fields are INT, remove single quote from the query: global $conn; |
C
|
cristi author 6/23/2012 |
If database fields are INT, remove single quote from the query: global $conn;
|
C
|
cgphp 6/23/2012 |
Check firebug for errors. |
C
|
cgphp 6/23/2012 |
Try this version: global $conn; |
C
|
cristi author 6/23/2012 |
Try this version: global $conn;
|
C
|
cgphp 6/23/2012 |
Post the full code (javascript as well). |
C
|
cristi author 6/23/2012 |
Post the full code (javascript as well).
$sql="UPDATE Exp SET `Amount`=".$values["Total"]." WHERE ID = ".$keys["ID"];
var ctrlPrice = Runner.getControl(pageid, 'hours'); |
C
|
cgphp 6/23/2012 |
Remember the global statement for the $conn: global $conn;
|
C
|
cristi author 6/23/2012 |
Remember the global statement for the $conn: global $conn;
|