I have a form that saves or updates all the data to a database and it is working as it should.
I decided to add two more fields to the form called "wst" and "wst_unit", and I coded it just like other fields. Then I added two columns to the database via phpMyAdmin with the same names and format.
However, my form is NOT SAVING those two new fields to the database, even though the debugger shows it is saving it correctly. When I look at my debugger information, I don't see it listed where it suppose to save to the database.
I'm not sure what am I doing wrong.
See below:
I decided to add two more fields to the form called "wst" and "wst_unit", and I coded it just like other fields. Then I added two columns to the database via phpMyAdmin with the same names and format.
However, my form is NOT SAVING those two new fields to the database, even though the debugger shows it is saving it correctly. When I look at my debugger information, I don't see it listed where it suppose to save to the database.
I'm not sure what am I doing wrong.
See below:
Array
(
[chronoform] => demographics
[event] => submit
[activity] => 1.3
[ethnicity] => caucasian
[wt] => 222.00
[wt_unit] => 1
[ht] => 77.00
[ht_unit] => 1
[wst] => 36
[wst_unit] => 1
[button] =>
[cadc1bee9ebcbe83759a5448896141ea] => db907de6a339a1fb0a54fa254a7be221
[joomla_user_state] => logged_in
[format] => html
[Itemid] => 177
[option] => com_chronoforms6
[view] => form
)
Array
(
[validate_fields3] => Array
(
[log] => Automatic validation enabled.
[var] => 1
)
[save_data10] => Array
(
[data] => Array
(
[chronoform] => demographics
[event] => submit
[activity] => 1.3
[ethnicity] => caucasian
[wt] => 222.00
[wt_unit] => 1
[ht] => 77.00
[ht_unit] => 1
[wst] => 36
[wst_unit] => 1
[button] =>
[cadc1bee9ebcbe83759a5448896141ea] => db907de6a339a1fb0a54fa254a7be221
[joomla_user_state] => logged_in
[format] => html
[Itemid] => 177
[option] => com_chronoforms6
[view] => form
[modified] => 2018-11-29 22:24:35
)
[_success] => Data saved successfully
[log] => Array
(
[0] => UPDATE `response` AS `Data10` SET `activity` = '1.3', `ethnicity` = 'caucasian', `wt` = '222.00', `wt_unit` = '1', `ht` = '77.00', `ht_unit` = '1', `modified` = '2018-11-29 22:24:35' WHERE `user_ID` = '846';
)
[var] => Array
(
[activity] => 1.3
[ethnicity] => caucasian
[wt] => 222.00
[wt_unit] => 1
[ht] => 77.00
[ht_unit] => 1
[modified] => 2018-11-29 22:24:35
)
)
)