【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“delete_story.php”一文,供大家参考学习
<?php
// delete_story.php
include_once('include_fns.php');
$handle = db_connect();
$story = $_REQUEST['story'];
if(check_per
mission($_SESSION['auth_user'], $story))
{
$query = "delete from stories where id = $story";
$result = $handle->query($query);
}
header('Location: '.$_SERVER['HTTP_REFERER']);
?>