23.11.2012, 13:50
If your query looks something like
SELECT TIMESTAMPDIFF(MINUTE, NOW(), DATE_ADD(Timestamp, INTERVAL Time MINUTE)) FROM ...
then using the cache works similarly to what I've described in previous posts.
SELECT TIMESTAMPDIFF(MINUTE, NOW(), DATE_ADD(Timestamp, INTERVAL Time MINUTE)) FROM ...
then using the cache works similarly to what I've described in previous posts.
pawn Код:
cache_get_row(0, 0, temp);
printf("Difference in minutes: %d", strval(temp));