📄 confirm_delete.php
字号:
<?php echo $_SERVER['SCRIPT_NAME']."<BR>"; ?>
<?php
include_once("include/db_connection.php");
$thisCustomer_id = $_REQUEST['customer_idField'];
$sql = "SELECT * FROM customers WHERE customer_id = '".$thisCustomer_id."'";
mysql_query("SET NAMES 'GB2312'");
$result = MYSQL_QUERY($sql);
$numberOfRows = MYSQL_NUMROWS($result);
if ($numberOfRows==0) {
?>
没找到记录 !!
<?php
}
else if ($numberOfRows>0) {
$i=0;
$thisCustomer_id = MYSQL_RESULT($result,$i,"customer_id");
$thisFname = MYSQL_RESULT($result,$i,"fname");
$thisLname = MYSQL_RESULT($result,$i,"lname");
$thisCompany = MYSQL_RESULT($result,$i,"company");
$thisAddress1 = MYSQL_RESULT($result,$i,"address1");
$thisAddress2 = MYSQL_RESULT($result,$i,"address2");
$thisCity = MYSQL_RESULT($result,$i,"city");
$thisState_province = MYSQL_RESULT($result,$i,"state_province");
$thisCountry = MYSQL_RESULT($result,$i,"country");
$thisPostal_code = MYSQL_RESULT($result,$i,"postal_code");
$thisPhone = MYSQL_RESULT($result,$i,"phone");
$thisFax = MYSQL_RESULT($result,$i,"fax");
}
?>
<h2>删除确认</h2><br><br>
<table>
<tr height="30">
<td align="right"><b>ID : </b></td>
<td><?php echo $thisCustomer_id; ?></td>
</tr>
<tr height="30">
<td align="right"><b>姓 : </b></td>
<td><?php echo $thisFname; ?></td>
</tr>
<tr height="30">
<td align="right"><b>名 : </b></td>
<td><?php echo $thisLname; ?></td>
</tr>
<tr height="30">
<td align="right"><b>公司 : </b></td>
<td><?php echo $thisCompany; ?></td>
</tr>
<tr height="30">
<td align="right"><b>地址1 : </b></td>
<td><?php echo $thisAddress1; ?></td>
</tr>
<tr height="30">
<td align="right"><b>地址2 : </b></td>
<td><?php echo $thisAddress2; ?></td>
</tr>
<tr height="30">
<td align="right"><b>城市 : </b></td>
<td><?php echo $thisCity; ?></td>
</tr>
<tr height="30">
<td align="right"><b>省份 : </b></td>
<td><?php echo $thisState_province; ?></td>
</tr>
<tr height="30">
<td align="right"><b>国家 : </b></td>
<td><?php echo $thisCountry; ?></td>
</tr>
<tr height="30">
<td align="right"><b>邮编 : </b></td>
<td><?php echo $thisPostal_code; ?></td>
</tr>
<tr height="30">
<td align="right"><b>电话 : </b></td>
<td><?php echo $thisPhone; ?></td>
</tr>
<tr height="30">
<td align="right"><b>传真 : </b></td>
<td><?php echo $thisFax; ?></td>
</tr>
</table>
<h3>如果你确定删除,点击删除按钮.</h3>
<br><br>
<form name="customersEnterForm" method="POST" action="delete.php">
<input type="hidden" name="thisCustomer_idField" value="<?php echo $thisCustomer_id; ?>">
<input type="submit" name="submitConfirmDeleteCustomersForm" value="删除">
<input type="button" name="cancel" value="返回" onClick="javascript:history.back();">
</form>
<p> </p>
<ul>
<li><div align="left"><a href="enter_new.php">添加新纪录</a></div>
</li>
<li>
<div align="left"><a href="list.php">所有记录列表</a></div>
</li>
<li>
<div align="left"><a href="search_form.php">搜索记录</a></div>
</li>
</ul>
<p></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -