forked from science-ation/science-ation
Fixed a stray quotation mark that broke a query
This commit is contained in:
parent
bbf46aa47f
commit
8e8f9f7c3b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user