qstr('In-Commerce'); $module_cat = $db->GetOne($sql); $next_resource_id = GetNextResourceId(); $sql = 'UPDATE '.GetTablePrefix().'Category SET ResourceId = %s WHERE CategoryId = %s'; $db->Execute( sprintf($sql, $next_resource_id, $module_cat) ); ?>