[PHP] Re: Making several variables into 1 variable

2009-07-28 Thread Jo�o C�ndido de Souza Neto
Why not this: $pastDate = date(d/m/y, strtotime(-30 days)); Miller, Terion tmil...@springfi.gannett.com escreveu na mensagem news:c6946809.4183%kmille...@springfi.gannett.com... I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m,

[PHP] Re: Making several variables into 1 variable

2009-07-28 Thread Carlos Medina
Miller, Terion schrieb: I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m, $pastDays); $past_year =date(y, $pastDays); And make it into one var to compare to a db field that is formatted like 00/00/00 $result = date(d/m/y,