blob: 2023af5dca501016ff987b259ea921c06dde4843 [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");
$prj_id = htmlentities($_POST['prj_id']);
$cat_id = htmlentities($_POST['cat_id']);
$shortname = htmlentities($_POST['shortname']);
$description = htmlentities($_POST['description']);
$query = "INSERT INTO project_categories (project_id, category_id, description, long_description) values ('$prj_id', '$cat_id', '$shortname', '$description')";
$result = mysql_query($query);
echo mysql_error();
?>
<html>
<body>
<h2>Project Category Association Added Successfully</h2>
<a href="project_categories.php">Return to Project Categories</a>
</body>
<html>