<?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 | |
*******************************************************************************/ | |
#***************************************************************************** | |
# | |
# delete_prj_category.php | |
# | |
# Author: Nathan Gervais | |
# Date: Nov 3rd, 2006 | |
# | |
# Description: | |
# This file deletes a project category association | |
#**************************************************************************** | |
require_once ("includes/header.php"); | |
$prj_id = $_GET['prj_id'] ? $_GET['prj_id'] : $_POST['prj_id']; | |
$cat_id = $_GET['cat_id'] ? $_GET['cat_id'] : $_POST['cat_id']; | |
$query = "DELETE FROM project_categories WHERE category_id = $cat_id AND project_id = '$prj_id'"; | |
$result = mysql_query($query); | |
echo mysql_error(); | |
?> | |
<html> | |
<body> | |
<h2>Project Category Association Deleted Successfully</h2> | |
<a href="project_categories.php">Return to Project Categories</a> | |
</body> | |
<html> | |