php - MySQL Interval Expiry from Creation Timestamp -


I am working on a project where a "one virtual candle light" and I want to create a cron job All the records that are selected are calculated from the "created_date" field from the database ending in the next five days, just as "type: TIMESTAMP> CURRENT_TIMESTAMP" process

process: candle duration = 30 days warning Period = 5

  $ query_rsQueryA = "day before 30 days  

In this Not that far (I can rest, this query is that I have problems) SELECT * FROM $ databaseName where made Gya_det + interval 5 days & lt; CURRENT_TIMESTAMP; "; $ RsQueryA = mysql_query ($ query_rsQueryA) or die (mysql_error ()); $ Row_rsQueryA = mysql_fetch_assoc ($ rsQuery a); $ Total Rows_rsQueryA = mysql_num_rows ($ rsQuery a);

Thanks advance!

It looks like what I wrote really works upwards, try it first Sorry about that!


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -