/home/mjc1/public_html/html/millennium/jointBoardProcess.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php include_once("./_common2.php"); ?>
<?
header
("Content-type:text/html;charset=euc-kr");
 include(
"../../manage/category/common.php");
 
  if( isset(
$name) && isset($subject) && isset($content)  ){
    
     
$_content       =     addslashes($content);
     
$reg_date       =     Time();
     
$tel            =    $tel1."-".$tel2."-".$tel3;
     
$hphone         =    $hp1."-".$hp2."-".$hp3;
     
      
//fid¸¦ ±¸ÇÑ´Ù.
     
     
$fidQry      =  "select fid from mBoard_joint order by fid desc limit 1";
     
$fidResult   =   mysql_query($fidQry);
     
      
$fidRow     =  mysql_fetch_array($fidResult); 
      
$_fid       =   $fidRow[0] +1;

      
$subject strip_tags($subject);
    
     
$insertQry  =  " insert into mBoard_joint values 
                   ( '','
$name','$company','$email','$homepage','$tel','$hphone','$subject','$_content','', 
                     '','','A','n','
$reg_date','','$id','$_fid', ''
                     
                   )"
;
                   
//uid, »óÈ£(¼º¸í), È¸»ç¸í, À̸ÞÀÏ, È¨ÆäÀÌÁö, ÀüÈ­¹øÈ£, ÇÚµåÆù¹øÈ£, Á¦¸ñ, ³»¿ë, Ã·ºÎÆÄÀÏ, »ç¿ëÇÁ·Î±×·¥, hit, thread, ch_veiw, µî·Ï³¯Â¥, temp, id, fid, work_res
      
mysql_query($insertQry); 
?>
<script>
  location.href = "./company_tieup.php";
    alert("µî·ÏÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù. °ËÅäÈÄ¿¡ ¿¬¶ôÀ» µå¸®°Ú½À´Ï´Ù.");

</script>
<?    
    
}
?>