product_view.php

来自「电子商务---产品发布系统 采用PHP+MYSQL+APACHE的环境,非常方」· PHP 代码 · 共 42 行

PHP
42
字号
<?php 
	include('dbconnect.php');
	?>
<?php 
	$id=$_GET['id'];
	
	$sql_view="select *from products where id='$id'";
	$result_view=mysql_query($sql_view,$conn);
	$info_view=mysql_fetch_array($result_view);
	
	?>
<link href="css/style.css" rel="stylesheet" type="text/css">
<p class="label">产品详细说明[<a href="product_edit.php?id=<?php echo $id; ?>">修改</a>][<a href="upload/uploadimage.php?id=<?php echo $id ;?>">更新图片</a>]</p>
<div>
  <table width="450" border="1" cellpadding="1" cellspacing="1" bordercolor="#999999">
    <tr>
      <td width="230">类别:<?php echo $info_view['class_name'];?></td>
      <td width="220" rowspan="7" align="center" valign="middle"><img src="upload/<?php if ($info_view['photo_filename']!="") {echo $info_view['photo_filename'];}else { echo "none.JPG";}?>" width="220" height="200">
	  </td>
    </tr>
    <tr>
      <td>编号:<?php echo $info_view['product_id'];?></td>
    </tr>
    <tr>
      <td>名称:<?php echo $info_view['product_name'];?></td>
    </tr>
    <tr>
      <td>价格:<?php echo $info_view['price'];?></td>
    </tr>
    <tr>
      <td>产地:<?php echo $info_view['origin'];?></td>
    </tr>
    <tr>
      <td>产品介绍</td>
    </tr>
    <tr>
      <td valign="top"><?php echo $info_view['info'];?></td>
    </tr>
  </table>
</div>
<p>&nbsp;</p>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?