/home/mjc1/public_html/manage/macrowdelProcess2.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?   include("category/opcommon.php");

  
// check params
  
if (!isset($_POST['macaddr'], $_POST['appcode'])) { die('Fill the form property!'); } 

    
$sql "SELECT idx FROM macs WHERE mac_addr = '$macaddr' AND app_code = '$appcode'";
    
$result mysql_query($sql);
    
$row mysql_fetch_array($result);

    
$msql "UPDATE macs SET app_rgsted = 0 WHERE idx = '$row[idx]'";
    
mysql_query($msql);

    
$dsql "UPDATE mac_detail SET cdkey = null WHERE mac_idx = '$row[idx]'";
    
mysql_query($dsql);
    
    echo 
"ret=1;";
?>