K
|
kohle 12/30/2021 |
Hi, do I understand correctly, Other question, the update depends on does this value change too ? $values - array of values to be written to the database. To access specific field value use $values["FieldName"] you can use : echo "Division:" $values['Division']; rg |
D
|
Dynamiccomp author 12/30/2021 |
Thanks, I may have not explained myself correctly. So what happens, is I have a "registration table" where the rider information is entered, which then also updates the "scoring" table. Then when ready to enter scores we open up the "scoring" table > click on edit, for that record, and then enter all of the scores in each "ScoreXX" field. So what i am saying then happens is when i click on "save" and taken back to the list, there is only data in the "Marks" field. So then if i click on edit, and then on "save" again it would then populate the "Net Results" and so on. Shouldn't it perform all of those calculations in a single "save" click? Or am I doing something wrong? The Division field doesn't get updated, it's only there because every division has a different number of scores to calculate. I just do not understand why it takes so many clicks for it to populate/perform all of those calculations, I figured they would all be done sequentially with a single click. |
![]() |
fhumanes 12/31/2021 |
Hello, I think the problem can occur by doing algebraic operations with null values. Initially, a whole are null, when stored they were "0" and so, you are doing the operations little by little. Before doing the operation, it verifies that the values are not null. Greetings, |
D
|
Dynamiccomp author 1/1/2022 |
How would i fix that issue without storing an inital value of "0"? Since we want all values to be blank before scores are entered. |
![]() |
fhumanes 1/2/2022 |
Hello, function nullZero($value){ Greetings, |