1 2 3 4 5 6 7
<?php foreach ($list as $entry) { unset($entry['datelimit']); Database::exec('UPDATE IGNORE location_roomplan SET tutoruuid = :new WHERE tutoruuid = :old', $entry); }