prepare('UPDATE `jobs` SET `heartbeat` = :heartbeat WHERE `jobid` = :jobid'); $time = time(); $stmt->bindParam(':heartbeat', $time); $stmt->bindParam(':jobid', $jobid); $stmt->execute();