📄 product_view.php
字号:
<?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> </p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -