?? 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 + -