<?php
/***************************************************************************
* admin/add_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($team && $dd && $mm && $yyyy)
{
$date = $yyyy . $mm . $dd;
$insert = "INSERT INTO games (seasonID, date, team) VALUES ('$seasonID','$date','$team')";
$result = mysql_query($insert);
echo "Thank You, That information has been entered.<br>\nIf 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 enter a team name and date";
}
}
else
{
echo "error";
}
?>