right well its giving me an error that i dont understand
Here is my code
<?
include('dbconnect.php');
//process
$team1 = $POST['team1'];
$team2 = $POST['team2'];
$odds1 = $POST['odds1'];
$odds2 = $POST['odds2'];
$oddsdraw = $POST['oddsdraw'];
$title = $POST['title'];
print "$team1 are playing $team2 with $team1 at home and $team2 away.<br>";
print "$team1 are priced at $odds1 and $team2 are priced at $odds2, a draw is priced at $oddsdraw.<br>";
print "You have given this game the title $title.";
mysql_query("INSERT INTO matches ( team1, team2, odds1, odds2, oddsdraw, title )
VALUES( $team1, $team2, $odds1, $odds2, $oddsdraw, $title )")
or die( "doesnt work because ".mysql_error());
?>
and if i input manchester utd as the home team in this form
<html>
<head>
<title>Add game</title>
</head>
<body>
<div align='center'>
<font face='tahoma' size='2'>
<form action='add.php' method='POST'>
Title of game : <input type='text' name='title'><br>
Team 1 : <input type='text' name='team1'> decimal odds : <input type='text' name='odds1'><br>
Team 2 : <input type='text' name='team2'> decimal odds : <input type='text' name='odds2'><br>
Draw odds : <input type='text' name='oddsdraw'><br>
<input type='submit'>
</form>
</font>
</div>
</body>
</html>
I get this error 'doesnt work because Unknown column 'manchester utd' in 'field list''
What have i done 🙁