From 8e8f9f7c3b3a796660a2330eef68025eeeb37af2 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 16 Jun 2010 17:45:13 +0000 Subject: [PATCH] Fixed a stray quotation mark that broke a query --- schoolteams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schoolteams.php b/schoolteams.php index edd5940..9c766a5 100644 --- a/schoolteams.php +++ b/schoolteams.php @@ -5,7 +5,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'] && $conference['type'] switch($_GET['action']){ case 'saveNew': $teamName = mysql_real_escape_string($_POST['teamname']); - $query = 'INSERT INTO so_teams (schools_id, conferences_id, name) VALUES (' . $_SESSION['schoolid'] . ', "' . $conference['id'] . ', "' . $teamName . '")'; + $query = 'INSERT INTO so_teams (schools_id, conferences_id, name) VALUES (' . $_SESSION['schoolid'] . ', ' . $conference['id'] . ', "' . $teamName . '")'; $success = mysql_query($query); draw_page(); break;