<?php
	/*
	** File: DELETE_COUPON
	** Description: drop a coupon
	** Version: $Revision: 1.4 $
	** Created: 11/2/99
	** Author: Chris Bellew
	** Email: chris@clearink.com
	** CVS Author: $Author: leon $
	** Last Revised: $Date: 1999/12/09 23:23:20 $
	** Log : $Log: DELETE_COUPON,v $
	** Log : Revision 1.4  1999/12/09 23:23:20  leon
	** Log : Changed ActionResults use so that it's an array instead of a
	** Log : continually-growing string.  Note the little function in standard_library
	** Log : for printing out all the action results.
	** Log :
	** Log : Revision 1.3  1999/11/09 22:21:14  leon
	** Log : More localization work.
	** Log :
	** Log : Revision 1.2  1999/11/02 20:35:41  leon
	** Log : Cleaned up coupon code a bit.
	** Log :
	**
	** Copyright (c) 1999 Working Dogs.  All rights reserved.
	*/

	if( !$UserInfo["Permission"]["Administrate"] )
	{
		print(L_DELETECOUPON_DENIED . "<BR>\n");
	}
	else
	{
		$Query = "DELETE from coupon ";
		$Query .= " WHERE ID = '" . $coupon . "'";
		if ( !($DatabaseResult = mysql_query($Query, $DatabaseLink)) )
		{
			print("<!-- " . mysql_errno() . ":  " . mysql_error() . 
				"   Query was $Query -->\n");
			$continueScript = FALSE;
		}
		else
		{
			$ActionResults[] = L_DELETECOUPON_SUCCESS;
		}
	}	
?>