/home/mjc1/public_html/consultationBoardP.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
40

<?
  
include("./category/common.php");
 
  if( isset(
$name) && isset($content)  ){
    
     
$_content       =     addslashes($content);
     
$reg_date       =     Time();
     
$tel            =    $tel1."-".$tel2."-".$tel3;
     
$hphone         =    $hp1."-".$hp2."-".$hp3;
     
$visitday       =    $vyear."-".$vmonth."-".$vday."-".$vtime;
     
      
//fid¸¦ ±¸ÇÑ´Ù.
     
     
$fidQry      =  "select fid from mBoard_consult order by fid desc limit 1";
     
$fidResult   =   mysql_query($fidQry);
     
      
$fidRow     =  mysql_fetch_array($fidResult); 
      
$_fid       =   $fidRow[0] +1;
    
     
$insertQry  =  " insert into mBoard_consult values 
                   ( '','
$subject','$name','$respon','$employeenum','$postnum','$sellingnum','$tel','$hphone','$addres',
                     '
$visitday','$_content','A',0,'$reg_date',0,0,'','',
                     '
$id','$_fid'
                     
                   )"
;
                   
      
mysql_query($insertQry); 
?>

<script>
 parent.Msg("Á¢¼öµÇ¾ú½À´Ï´Ù. ¹æ¹® ´ã´çÀÚ°¡ ¿¬¶ô µå¸®°Ú½À´Ï´Ù.");
</script>  

<? 

  
}
  
?>