Is there any more elegant way how to write such a condition?
WHERE date<'".($date+1)."-07-01'
Something similar to
WHERE date<'{($date+1)}-07-01'
Is there any more elegant way how to write such a condition?
WHERE date<'".($date+1)."-07-01'
Something similar to
WHERE date<'{($date+1)}-07-01'
$date = 2013;
$truedate = ($date + 1) . "-07-01";
$preparedDb = new DB;
$preparedDb->prepare("SELECT * FROM T1 WHERE date < ?")
->execute(array($truedate));