M
|
m3 2/16/2023 |
This is an interesting problem. I would approach it in one of either 2 ways (2 cents worth):
|
![]() |
Roosevelt author 2/17/2023 |
Hello M3, tks for help. |
C
|
cristi 2/18/2023 |
As m3 suggested php sessions would be one way to do it:
$_SESSION["diff"]=$data["Diario_aqua"]-$_SESSION["diff"]; Adjust field names accordingly.... your language (it seems to be portuguese?) is not my native language so field names are not identical but you get the idea: it's a simple conditional where you create a session, assign a intial value, make a substraction and if the result is equal with the one from the column before you hide it by using an empty string otherwise you display the result - I don't know how you choose to format your floating point numbers so for the sake of demonstration I used "number_format" from PHP to format the result with two decimals - it is not mandatory - you use it if you need it.... End result:
|
![]() |
Roosevelt author 2/18/2023 |
Wonderful ... thank you very much, how can I study programming in phprunner like you??? Where do I start, where do I find material specific to phprunner. |
![]() |
Sergey Kornilov admin 2/18/2023 |
There is nothing PHPRunner specific in this code, just a basic understanding of how PHP works and what session variables are. Any basic PHP tutorial will work for you. Better yet, take the code provided and adopt it for other uses, learn by doing. What can be helpful though is the understanding of what events are available in PHPRunner. This article can help: |