请大侠们帮我看看这个问题出在哪?
代码如下
<br>html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional// CN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br>
require_once 'header.php';
require_once 'check.php';
?>
项目详细信息 if(isset($_POST['submit_edit_item_id']))
{
$_SESSION['eidt_item_id'] = $_POST ['sub_edit_item_id'];
}
$item_id = $_SESSION['eidt_item_id'];
$result = mysql_query("SELECT * FROM ITEM WHERE ITEM_ID = $item_id") ;
if($result)
{
$row = mysql_fetch_array($result);
$user_id = $_SESSION['id'];
$name = $row['NAME'];
$dsc = $row['DESCRIPTION'];
$auc = $row['RESERVE_PRICE'];
$bin = $row['BIN_PRICE'] ;
$btime = $row['BEGIN'];
$etime = $row['END'];
$status = $row['STATUS'];
$seller = $ row['SELLER_ID'];
$winner = $row['WINNER_ID'];
$curr_bid = $row['CURR_BID'];
$num_bid = $row['NUM_BID'];
$img_id = $row['IMG_ID'];
}
$result = mysql_query("从 USER WHERE USER_ID = $seller 中选择 USER_NAME ");
if($result)
{
$row = mysql_fetch_array($result);
$seller_name = $row['USER_NAME'];
}
?>
编辑项目: |
| |
| display_image($img_id, 500, 400);
?>
if(isset($_POST['sub_change_pic']))
{
if(isset($_FILES['image']))
{
$file = $_FILES['image']['tmp_name'];
if(!empty($file))
{
$image = addslashes(file_get_contents($file));