<?php include "../../../system.php"; include "../../system.php"; include "../../../function/new_function.php"; include "stock_unit.php"; //System----------------------------------------------------------- $now_table = $pro_stock_table; //System----------------------------------------------------------- $tool = new My_Tool(); $sam = new guard(); $unit = new stock(); $id = $_POST['id']; $num = $_POST['num']; $unit->table = $now_table; $unit->id = $id; $unit->get_db_var(); $unit->num = $num; $unit->upd();