$result = $db->query($sql);


if($result){

$msg='정상적으로 글이 삭제 되었습니다.';

$replaceURL='./';

}else {

$msg='글을 삭제하지 못했습니다.';

?>

<script>

alert("<?php echo $msg?>");

history.back();

</script>


<?php 

exit;

}

?>


<script >

alert ( "<?php echo $msg?>" );

location . replace ( "<?php echo $replaceURL?>" );

</script>

Posted by 이상욱1
,