Exemplo n.º 1
0
<?php

include "../../../system.php";
include "../../system.php";
include "../../../function/new_function.php";
include "ps_unit.php";
//System-----------------------------------------------------------
$now_table = $pro_size_relate_table;
$related_table = $pro_stock_table;
//System-----------------------------------------------------------
$tool = new My_Tool();
$sam = new guard();
$unit = new psize();
$id = $_POST['id'];
$unit->table = $now_table;
$unit->id = $id;
$unit->del();
//刪除關聯紀錄
$sql = "DELETE from `{$related_table}` where sid='{$id}'";
mysql_query($sql);