This topic is locked

value of deleted record

12/22/2009 5:56:09 AM
PHPRunner General questions
D
danaci author

hi,
how to update master table from deleted detail table?
master table

sno int(9) auto_increment not null,

bedel int(9)

toplam int(9)
detail table

sno int(9) auto_increment not null,

num int(9) ,

det_bedel int(9)
detail table is linked num to master table.
if deleted detail table a record

{

bedel - det_bedel

bedel + toplam

}
if(@$_REQUEST["a"]=="delete")
how to?
return true;

J
Jane 12/23/2009

Hi,
use Before record deleted event for this purpose.

All deleted values are in the $deleted_values array.

D
danaci author 12/23/2009

thnx jane