⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deletecustomer.php

📁 《PHP专业项目实例开发》源代码
💻 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">
<?php
 if(!isset($customerid)) {  die("Customer ID not submitted !"); } if(empty($customerid)) {  die("Customer ID empty !"); } $host=""; $username="root"; $password=""; $database="books";  $x=mysql_connect($host,$username,$password);
 $x1=mysql_select_db($database);
 $query="delete from customerinfo where customerid ='".$customerid."'";
 $result=mysql_query($query); if($result) {   echo "Customer record deleted from customerinfo table.<br>\n"; } else {  echo "Customer record not found in customerinfo !<br>\n"; } $query="delete from login where customerid ='".$customerid."'";
 $result=mysql_query($query); if($result) {   echo "Customer record deleted from login table.<br>\n"; } else {  echo "Customer record not found in login table !<br>\n"; } $query="delete from newsmail where customerid ='".$customerid."'";
 $result=mysql_query($query); if($result) {   echo "Customer record deleted from newsmail table.<br>\n"; } else {  echo "Customer record not found in newsmail table !<br>\n"; } $query="delete from neworder where customerid ='".$customerid."'";
 $result=mysql_query($query); if($result) {   echo "Customer record deleted from neworder table.<br>\n"; } else {  echo "Customer record not found in neworder table !<br>\n"; }echo " Customer record in Orders table left Intact !<br>";?>
<br><br>To return to Admin page <A href="index.htm"> Click here! </a><br><br></body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -