Home > Backend Development > PHP Tutorial > 请大侠们帮小弟我看看这个有关问题出在哪

请大侠们帮小弟我看看这个有关问题出在哪

WBOY
Release: 2016-06-13 12:43:23
Original
668 people have browsed it

请大侠们帮我看看这个问题出在哪?
代码如下

<br>
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br>
<br>
<br>
<br>
<br>
<?php  <br />
	require_once 'header.php'; <br>
	require_once 'check.php';<br>
?><br>
<br>
<meta><br>
<meta><br>
<title>Item Detail</title><br>
<style><br />
.auto-style2 {<br />
	text-align: center;<br />
}<br />
.auto-style1 {<br />
	font-size: 36pt;<br />
	text-align: left;<br />
	font-family: Default;<br />
}<br />
.auto-style3 {<br />
	font-family: Broadway;<br />
}<br />
</style><br>
<br>
<br>
<br>
<?php <br />
	if(isset($_POST['submit_edit_item_id']))<br>
	{<br>
		$_SESSION['eidt_item_id'] = $_POST['sub_edit_item_id'];<br>
	}<br>
	<br>
	$item_id = $_SESSION['eidt_item_id'];<br>
		<br>
	$result = mysql_query("SELECT * FROM ITEM WHERE ITEM_ID = $item_id");<br>
	<br>
	if($result)<br>
	{<br>
		$row = mysql_fetch_array($result);<br>
		<br>
		$user_id = $_SESSION['id'];<br>
		$name = $row['NAME'];<br>
		$dsc = $row['DESCRIPTION'];<br>
		$auc = $row['RESERVE_PRICE'];<br>
		$bin = $row['BIN_PRICE'];<br>
		$btime = $row['BEGIN'];<br>
		$etime = $row['END'];<br>
		$status = $row['STATUS'];<br>
		$seller = $row['SELLER_ID'];<br>
		$winner = $row['WINNER_ID'];<br>
		$curr_bid = $row['CURR_BID'];<br>
		$num_bid = $row['NUM_BID'];<br>
		$img_id = $row['IMG_ID'];<br>
	}<br>
	<br>
	$result = mysql_query("SELECT USER_NAME FROM USER WHERE USER_ID = $seller");<br>
	if($result)<br>
	{<br>
		$row = mysql_fetch_array($result);<br>
		$seller_name = $row['USER_NAME'];<br>
	}<br>
?><br>
<br>
		
Copy after login









Edit item:

 请大侠们帮小弟我看看这个有关问题出在哪







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));
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template