![]() |
update after 24 hours
I am using magento.well, i have a database where i store users points now i want to run a query like :
get time from database points where id=$id now i have the last time points data has been updated. So, if the data updated more then 24 hours then a new query will run and update 50 points and time of the data. Can anybody help me on that how to code it. I tried but stuck and failed. Even a example will be great. here is my code that i have tried but no results : well have also tested results though echo : results: Code:
$time_current = 1330240954PHP Code:
|
well the problem is solved all i need to do is making 2 queries 1 for points to be increased and one for time to be increased i guess magento only allowed these don't know but works for me i know it will create a lilttle bit load but didn't find any solution expect this
|
| All times are GMT +1. The time now is 09:50 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.