Fixed a stray quotation mark that broke a query

This commit is contained in:
jacob 2010-06-16 17:45:13 +00:00
parent bbf46aa47f
commit 8e8f9f7c3b

View File

@ -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;