Jump to content

syntax question


affordit

Recommended Posts

That looks perfect to me. MySQL manual confirms the syntax for date comparison.

I have no idea man.

 

Try?

<?php
$end_date = date("Y-m-d", strtotime("+ 5 days"));
$remind_date = 0;
$query = "SELECT * FROM `test` WHERE `end_date` <= '$end_date' AND `remind_date` = '$remind_date'";
?>

Link to comment
https://forums.phpfreaks.com/topic/96168-syntax-question/#findComment-492270
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.