📄 psdetail.php
字号:
<?
//从数据库中取得商品的详细信息
$connect=mysql_connect("127.0.0.1","root","root");
mysql_select_db("ebusiness");
$query="Select * from Product where ProductID='.$id.'";
$result=mysql_query($query);
$res=mysql_fetch_array($result);
mysql_close($connect);
//按格式输出
echo'<html>
<head>
<title>商品详细数据</title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
</head>';
echo'<body bgcolor="#ffffff">
<table width="760" border="1" cellspacing="5" cellpadding="0">
<tr align="center">
<td width="121">商品编号</td>
<td width="616">';
echo $res["ProductID"];
echo'</td>
</tr>
<tr align="center">
<td width="121">商品名</td>
<td width="616">';
echo $res["ProductName"];
echo '</td>
</tr>
<tr align="center">
<td width="121">商品详细信息</td>
<td width="616">';
echo $res["Detail"];
echo '</td>
</tr>
</table>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -