1 2 3 4 5 6 7 8 9 10
<?php function updateSessionParentDiakId($parentDiakId) { $q = "UPDATE session SET parentDiakId=%u WHERE policy='parent' and sessionID='"._SESSIONID."'"; db_query($q, array('fv' => 'updateSessionOid', 'modul' => 'naplo_base', 'values' => array($parentDiakId))); } ?>