📄 removecat.php
字号:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<table width="37%" border="0" align="center" cellpadding="0" cellspacing="0" height="66">
<tr>
<td bgcolor="#000000" height="2">
<div align="center"><b><font color="#FFFFFF">Choose a catgeory to REMOVE!</font></b></div>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC" height="17">
<form name="form3" method="post" action="deletecategory.php">
<p align="center"><b>
<?php
$host=""; $username="root"; $password=""; $database="books"; $x=mysql_connect($host,$username,$password);
$x1=mysql_select_db($database);
$query="select categoryid,name from category";
$result=mysql_query($query);
echo " <select name=\"categoryid\">\n";
echo " <option value=\"0\">Choose a category to delete</option>\n";
while($row=mysql_fetch_array($result))
{
echo " <option value=\"". $row["categoryid"]."\">".$row["name"] ."</option>\n";
}
echo " </select>";
?>
<input type="submit" name="Submit32" value="Submit">
</b></p>
</form>
</td>
</tr>
</table>
<p> </p>
<table width="37%" border="0" align="center" cellpadding="0" cellspacing="0" height="66">
<tr>
<td bgcolor="#000000" height="10">
<div align="center"><b><font color="#FFFFFF">REMOVE CATEGORY </font></b></div>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC" height="17">
<form name="form3" method="post" action="deletecategory.php">
<p align="center"><b>Product ID
<input type="text" name="categoryid" size="10">
<input type="submit" name="Submit3" value="Submit">
</b></p>
</form>
</td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -