-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/z_admin_cashtest/php/brand/
File Upload :
Current File : /var/www/html/z_admin_cashtest/php/brand/act.update.php

<?

$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]}_brand " , " numid='{$val}' " ) ;
	} else {
		$numids[] = $exe->qry_insert ( array (
							'keycode'		=> $total['code'] ,
							'write_date'	=> $total['now'] ,
							'ip'			=> $total['ip'] ,
							'sequence'		=> $key + 1 ,
							'title'			=> str_convert($_POST['n_title'][$key]) ) , "tbl_{$total[table]}_brand " ) ;
	}
}

if ( count($numids) > 0 )
	$exe->qry_delete ( " tbl_{$total[table]}_brand " , " numid not in ( " . implode( ',' , $numids ) . " ) " ) ;

script_re ( $total['cmnall'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee