MINI MINI MANI MO
<?php
include "$DOCUMENT_ROOT/admin/inc/header.php";
if($mode == 'regist' || $mode == 'modify') {
if($mode == 'regist') {
$sql = "insert into tow set step= '1' , step_id= '$_SESSION[login_id]' , step_name= '$_SESSION[login_name]' , ";
} else if($mode == 'modify') {
$sql = "update tow set step='$step', ";
}
$sql.= " tow_date = '$tow_date' ,
tow_target = '$tow_target' ,
tow_result = '$tow_result',
tow_step = '$tow_step' ,
type = '$type' ,
start = '$start' ,
area = '$area',
car_num='$car_num',
car_name = '$car_name',
car_year = '$car_year',
phone1 = '$phone1',
phone2 = '$phone2',
sales_idx = '$sales_idx',
client_idx = '$client_idx',
agent_idx = '$agent_idx',
custom = '$custom',
memo = '$memo' ,
";
if($mode == 'regist') {
$sql.= "seller = '".$_SESSION["login_name"]."' , user_id='".$_SESSION["login_id"]."', regdate = now()";
$msg = '저장';
} else if($mode == 'modify') {
$sql.= "mod_date = now() where idx='$idx' ";
$msg = '수정';
}
//echo $sql;
mysql_query($sql);
}
//msg($tow_step);
movepage("list01.php");
?>
OHA YOOOO