<?php


class func
{

    public function get_username($user_id){
        $db = new db_safeguard();
        $res = $db->query("users","SELECT username FROM users WHERE record_id = $user_id");
        $row = $res->fetch_assoc();
        return $row['username'];
    }

    public function get_equipment($id){
        $db = new db_safeguard();
        $res = $db->query("equipment_list","SELECT * FROM equipment_list WHERE record_id = $id");
        $row = $res->fetch_assoc();
        return $row['name'];
    }
}