<?php
/***************************************************************************
* admin/delete_game.php
* -------------------
* copyright : (C) 2003 Fred Hays & Jared Riddle
* email : hide@address.com & hide@address.com
* support : http://mypbs.sourceforge.net/forum
* version : MyPBS v1.0
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* MyPBS comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.
* This is free software, and you are welcome to redistribute it under
* certain conditions; see LICENSE for details.
*
***************************************************************************/
include ('../include/config.inc.php');
if($submit)
{
if($gameID)
{
$delete = "DELETE FROM games WHERE gameID = $gameID";
$delete2 = "DELETE FROM batting WHERE batting.gameID = $gameID";
$delete3 = "DELTE FROM pitching WHERE pitching.gameID = $gameID";
$result = mysql_query($delete);
$result2 = mysql_query($delete2);
$result3 = mysql_query($delete3);
echo "Thank You, That information has been entered.<br>\n
If you are not re-directed to the Admin page in 3 seconds
<a href=index.php?seasonID=$seasonID>Click Here</a>";
echo "<META HTTP-EQUIV=Refresh CONTENT=\"3; URL=index.php?seasonID=$seasonID\">";
}
else
{
echo "you must select a game";
}
}
else
{
echo "error";
}
?>