示例#1
0
<?php

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