Whatever message this page gives is out now! Go check it out!
DELETE FROM Employee WHERE Emp_ID = #Form.Emp_ID#<form action="delete_action.cfm" method="Post"><head>
<title>Delete Employee Record</title>
</head>
<body>
<cfquery name="DeleteEmployee"
datasource="cfdocexamples">
DELETE FROM Employee
WHERE Emp_ID = #Form.Emp_ID#
</cfquery>
<h1>The employee record has been deleted.</h1>
<cfoutput>
You have deleted #Form.FirstName# #Form.LastName# from the employee database.
</cfoutput>
</body>
</html>Code | Description |
DELETE FROM Employee WHERE Emp_ID = #Form.Emp_ID# </cfquery> | Deletes the record in the database whose Emp_ID column matches the Emp_ID (hidden) field on the form. Since the Emp_ID is the table's primary key, only one record is deleted. |
You have deleted #Form.FirstName# #Form.LastName# from the employee database. </cfoutput> | Informs the user that the record was deleted. |
DELETE FROM Employee WHERE Dept_ID = 4DELETE FROM Employee |