Why is this code ...
$curr_time = new DateTime();
$query_inprocess = "UPDATE `MyTable`
SET inprocess=1
WHERE startTime <= '" .$curr_time->format('Y-m-d H:i') . "'";
... leads to an invalid SQL query in which the after statement is <ignored?
UPDATE `MyTable` SET inprocess=1 WHERE startTime <
source
share