/home/mjc1/public_html/html/demo_event/eventProcess.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
<?php
    
include("../../manage/category/common.php");

    
$sql "select * from member where Mid = 'ryunen' ";
    
$res mysql_query($sql);
    
$info mysql_fetch_array($res);
    
//print_r($info);

    
$content addslashes($content);
    
$sql "insert into mBoard_event set
                name = '
{$name}', hp = '{$hp}', content = '{$content}',
                Mid = '
{$Mid}', app_id = '{$app_id}', status = '{$status}',
                reg_date = '"
.date("Y-m-d H:i:s",time())."'
    "
;
    
mysql_query($sql);
    
$id mysql_insert_id();
    
//echo $id;
    
if($id>0){
?>
<script>
document.location.href='http://<?php echo $_SERVER['SERVER_NAME']?>/html/demo_event/event_end.php';
//alert('ÇÒÀΠÀ̺¥Æ®°¡Á¤»óÀûÀ¸·Î µî·ÏµÇ¾ú½À´Ï´Ù. °¨»çÇÕ´Ï´Ù.'); window.close();
</script>
<?php
    
} else {
?>
<script>alert('µî·Ï ¿À·ù°¡ ¹ß»ý ÇÏ¿´½À´Ï´Ù. ¿¥Á¦À̼ÒÇÁÆ® ¹®ÀÇ ¹Ù¶ø´Ï´Ù.'); window.history.go(-1);</script>

<?php
    
}
?>