I have columns called repeat_date and repeat_month and I would like to
use the info within them in my WHERE clause as part of a
UNIX_TIMESTAMP( ).
Essentially, I would like to say something like:
SELECT * FROM table WHERE
UNIX_TIMESTAMP( repeat_date-repeat_month-$curYear 0:00:00) > $date_start
AND UNIX_TIMESTAMP( repeat_date-repeat_month-$curYear 0:00:00) <
$date_end
The variables $curYear, $date_start and $date_end will have been set
previously with PHP.
I'd like to use the information in each row within the
UNIX_TIMESTAMP( ).
Is this possible? If so, how would I do it?
Thanks in advance
use the info within them in my WHERE clause as part of a
UNIX_TIMESTAMP( ).
Essentially, I would like to say something like:
SELECT * FROM table WHERE
UNIX_TIMESTAMP( repeat_date-repeat_month-$curYear 0:00:00) > $date_start
AND UNIX_TIMESTAMP( repeat_date-repeat_month-$curYear 0:00:00) <
$date_end
The variables $curYear, $date_start and $date_end will have been set
previously with PHP.
I'd like to use the information in each row within the
UNIX_TIMESTAMP( ).
Is this possible? If so, how would I do it?
Thanks in advance
Comment