-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
$numids = array() ;
foreach ( $_POST['n_numid'] as $key=>$val ) {
if ( !empty($val)) {
$numids[] = $val ;
$exe->qry_update ( " title = '" . str_convert($_POST['n_title'][$key]) . "' , sequence = " . ($key+1) , " tbl_{$total[table]}_category " , " c1_no = '" . $_POST['c1_no'] . "' and c2_no = '" . $_POST['c2_no'] . "' and numid='{$val}' " ) ;
} else {
$numids[] = $exe->qry_insert ( array (
'keycode' => $total['code'] ,
'write_date' => $total['now'] ,
'ip' => $total['ip'] ,
'sequence' => $key + 1 ,
'c1_no' => $_POST['c1_no'] ,
'c2_no' => $_POST['c2_no'] ,
'title' => str_convert($_POST['n_title'][$key]) ) , "tbl_{$total[table]}_category " ) ;
}
}
if ( count($numids) > 0 )
$exe->qry_delete ( " tbl_{$total[table]}_category " , " c1_no = '" . $_POST['c1_no'] . "' and c2_no = '" . $_POST['c2_no'] . "' and numid not in ( " . implode( ',' , $numids ) . " ) " ) ;
else
$exe->qry_delete ( " tbl_{$total[table]}_category " , " c1_no = '" . $_POST['c1_no'] . "' and c2_no = '" . $_POST['c2_no'] . "' " ) ;
script_re ( $total['cmnall'] . '&mode=2depth&c1=' . $_POST['c1_no'] . '&c2=' . $_POST['c2_no'] ) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee