![]() |
kujox 12/2/2010 |
This is all to you, PHPMySQL experts. In fact I need a syntax and hope some good soul out here is willing to help. I'm using version 5.3 and as in title trying to exploit the "after record added" event. Idea is there is one database, lets say 'db' and there are 2 tables 'table1' and 'table2'. 'table1'is the main table with all the main data. 'table2' is for reporting purposes. In 'table2' user selects office and date range and after save record in 'table2' this event calculates from the main 'table1' with query(office and between dates) sum of costs from the main 'table1' and inserts it into 'table2' field 'cost'. Any help would be appreciated. Cheers.
|