![]() |
Sergey Kornilov admin 4/30/2011 |
According to the manual you can access the value of any field in the current record as $data["FieldName"]. |
B
|
bobby321 author 4/30/2011 |
According to the manual you can access the value of any field in the current record as $data["FieldName"]. More info: http://xlinesoft.com/phprunner/docs/after_record_processed.htm
|
![]() |
Sergey Kornilov admin 4/30/2011 |
When you saying "place the value of $Days in a table field" - do you mean ave this value in the database or simply display it somewhere on the page? |
B
|
bobby321 author 4/30/2011 |
When you saying "place the value of $Days in a table field" - do you mean ave this value in the database or simply display it somewhere on the page?
|
![]() |
Sergey Kornilov admin 4/30/2011 |
I guess you need to provide a full picture. Its not clear if you want to save it permanently or temporary. |
B
|
bobby321 author 5/1/2011 |
I guess you need to provide a full picture. Its not clear if you want to save it permanently or temporary.
|
![]() |
Sergey Kornilov admin 5/2/2011 |
The question you need to ask yourself - do you really want to update your database multiple times on each page load? |
B
|
bobby321 author 5/2/2011 |
The question you need to ask yourself - do you really want to update your database multiple times on each page load? The number of days only changes once a day, why would you want to update it that often. If you only need to calculate and display the number of days between two days you can do this right in SQL query. DATEDIFF() function gives you the number of days between two dates: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_datediff
|
![]() |
Sergey Kornilov admin 5/2/2011 |
The issue is that instead of daily update you will be updating database probably a thousand times. Calculated value is the way to go and it's much easier to setup. |
B
|
bobby321 author 5/2/2011 |
The issue is that instead of daily update you will be updating database probably a thousand times. Calculated value is the way to go and it's much easier to setup. You can contact support directly if you need help using DATEDIFF function. We'll need to see your sample database in order to provide help.
|