Hi everyone
I need some help with a PHP/MySQL script.
What I’d like to do:
-Change the status of all MySQL entries that exceed a different number of days and fulfill certain conditions.
-Timestamp (MySQL) plus number of days (PHP variable read from each MySQL entry) >= than todays date.
-Change only entries that have the status = “0”
-Change their status to “3”
I hope this makes some kind of sense and you can use this description to help me?
Examples:
Timestamp 2010-07-23 20:18:18 + Number of days in MySQL = 30 to be used in PHP script & change status if <= Today
Timestamp 2010-06-23 17:15:01 + Number of days in MySQL = 90 to be used in PHP script & change status if <= Today
etc.
I need some help with a PHP/MySQL script.
What I’d like to do:
-Change the status of all MySQL entries that exceed a different number of days and fulfill certain conditions.
-Timestamp (MySQL) plus number of days (PHP variable read from each MySQL entry) >= than todays date.
-Change only entries that have the status = “0”
-Change their status to “3”
I hope this makes some kind of sense and you can use this description to help me?
Examples:
Timestamp 2010-07-23 20:18:18 + Number of days in MySQL = 30 to be used in PHP script & change status if <= Today
Timestamp 2010-06-23 17:15:01 + Number of days in MySQL = 90 to be used in PHP script & change status if <= Today
etc.
Last edited:









