diff --git a/dev/manage-code/create-file/create_file_table.sql b/dev/manage-code/create-file/create_file_table.sql index 039363b38..ccd9f2fa1 100644 --- a/dev/manage-code/create-file/create_file_table.sql +++ b/dev/manage-code/create-file/create_file_table.sql @@ -3,5 +3,5 @@ SELECT FROM information_schema.columns WHERE - columns.table_name='member_record'; + columns.table_name='section_ledger'; diff --git a/dev/manage-code/create-file/create_phpclass.py b/dev/manage-code/create-file/create_phpclass.py index 89b2c3d6f..273b8e47a 100755 --- a/dev/manage-code/create-file/create_phpclass.py +++ b/dev/manage-code/create-file/create_phpclass.py @@ -71,6 +71,7 @@ class @class_name@ @mother_class@ if ( $p_id == -1 ) { /* Initialize an empty object */ foreach ($this->variable as $key=>$value) $this->$value=''; + $this->@id@=$p_id; } else { /* load it */