blob: 41d5328217bc51a1961dc10a9f35639298b8ab19 [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2006 Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nathan Gervais (Eclipse Foundation)- initial API and implementation
*******************************************************************************/
#*****************************************************************************
#
# add_category.php
#
# Author: Nathan Gervais
# Date: Nov 3rd, 2006
#
# Description:
# This file adds a Category to the database
#****************************************************************************
require_once ("includes/header.php");
$id = $_GET['id'] ? $_GET['id'] : $_POST['id'];
$query = "DELETE FROM categories where category_id = $id";
$result = mysql_query($query);
echo mysql_error();
?>
<html>
<body>
<h2>Category Deleted Successfully</h2>
<a href="categories.php">Return to Categories</a>
</body>
<html>