db = $db; } function view($uuid) { $sql = "SELECT * FROM ".$this->tbl_metadata." WHERE uuid='$uuid'"; $rs = $this->db->query($sql); return $rs->fetch(); } }